Skip to content

Commit c93f3e7

Browse files
committed
Make it easier to reproduce matrix test_task commands from CI
Expand the interpolated command so that it is easier to see exactly what command was run.
1 parent d7ad446 commit c93f3e7

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/yjit-macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ jobs:
145145
test -n "${LAUNCHABLE_STDOUT}" && exec 1> >(tee "${LAUNCHABLE_STDOUT}")
146146
test -n "${LAUNCHABLE_STDERR}" && exec 2> >(tee "${LAUNCHABLE_STDERR}")
147147
148+
verbose () { set -x && "$@" && set +x; } && verbose \
148149
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"} \
149150
RUN_OPTS="$RUN_OPTS" \
150151
SPECOPTS="$SPECOPTS"

.github/workflows/yjit-ubuntu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ jobs:
195195
test -n "${LAUNCHABLE_STDOUT}" && exec 1> >(tee "${LAUNCHABLE_STDOUT}")
196196
test -n "${LAUNCHABLE_STDERR}" && exec 2> >(tee "${LAUNCHABLE_STDERR}")
197197
198+
verbose () { set -x && "$@" && set +x; } && verbose \
198199
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"} \
199200
RUN_OPTS="$RUN_OPTS" MSPECOPT=--debug SPECOPTS="$SPECOPTS" \
200201
YJIT_BENCH_OPTS="$YJIT_BENCH_OPTS" YJIT_BINDGEN_DIFF_OPTS="$YJIT_BINDGEN_DIFF_OPTS"

.github/workflows/zjit-macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ jobs:
113113
114114
- name: make ${{ matrix.test_task }}
115115
run: >-
116+
verbose () { set -x && "$@" && set +x; } && verbose
116117
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"}
117118
RUN_OPTS="$RUN_OPTS"
118119
SPECOPTS="$SPECOPTS"

.github/workflows/zjit-ubuntu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ jobs:
153153
154154
- name: make ${{ matrix.test_task }}
155155
run: >-
156+
verbose () { set -x && "$@" && set +x; } && verbose
156157
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"}
157158
RUN_OPTS="$RUN_OPTS" MSPECOPT=--debug SPECOPTS="$SPECOPTS"
158159
TESTOPTS="$TESTOPTS"

0 commit comments

Comments
 (0)