Skip to content

Commit fa3a2bf

Browse files
authored
Print the repro command in the test.log file for wd_test tests (#2651)
1 parent 933ede0 commit fa3a2bf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build/wd_test.bzl

+7-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ def _wd_test_impl(ctx):
7373
executable = ctx.outputs.executable
7474
ctx.actions.write(
7575
output = executable,
76-
content = "#! /bin/sh\nexec \"$@\" -dTEST_TMPDIR=$TEST_TMPDIR\n",
76+
content = """
77+
#! /bin/sh
78+
echo
79+
echo \\(cd `pwd` \\&\\& \"$@\" -dTEST_TMPDIR=$TEST_TMPDIR\\)
80+
echo
81+
exec \"$@\" -dTEST_TMPDIR=$TEST_TMPDIR
82+
""",
7783
is_executable = True,
7884
)
7985

0 commit comments

Comments
 (0)