Skip to content

Commit

Permalink
Print the repro command in the test.log file for wd_test tests (#2651)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikcorry authored Sep 5, 2024
1 parent 933ede0 commit fa3a2bf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build/wd_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,13 @@ def _wd_test_impl(ctx):
executable = ctx.outputs.executable
ctx.actions.write(
output = executable,
content = "#! /bin/sh\nexec \"$@\" -dTEST_TMPDIR=$TEST_TMPDIR\n",
content = """
#! /bin/sh
echo
echo \\(cd `pwd` \\&\\& \"$@\" -dTEST_TMPDIR=$TEST_TMPDIR\\)
echo
exec \"$@\" -dTEST_TMPDIR=$TEST_TMPDIR
""",
is_executable = True,
)

Expand Down

0 comments on commit fa3a2bf

Please # to comment.