As one step of post-task commands, we probe WT_TEST folder in the build directory to find out the stdout.txt/stderr.txt and dump their contents into Evergreen task log. On macOS, the dump command did not handle directory name with parentheses well enough, causing dump failure like below:
[2021/05/12 14:38:08.752] Running command 'shell.exec' in "dump stderr/stdout" (step 3 of 4) [2021/05/12 14:38:08.759] if [ -d "WT_TEST" ]; then [2021/05/12 14:38:08.759] # Dump stderr/stdout contents generated by the C libraries onto console for Python tests [2021/05/12 14:38:08.759] find "WT_TEST" -name "std*.txt" ! -empty -exec sh -c "echo 'Contents from {}:'; cat {}" \; [2021/05/12 14:38:08.763] fi [2021/05/12 14:38:08.763] sh: -c: line 0: syntax error near unexpected token `(' [2021/05/12 14:38:08.763] sh: -c: line 0: `echo 'Contents from WT_TEST/test_checkpoint_snapshot04.test_checkpoint_snapshot04.test_checkpoint_snapshot(target).0/stdout.txt:'; cat WT_TEST/test_checkpoint_snapshot04.test_checkpoint_snapshot04.test_checkpoint_snapshot(target).0/stdout.txt' [2021/05/12 14:38:08.765] sh: -c: line 0: syntax error near unexpected token `(' [2021/05/12 14:38:08.765] sh: -c: line 0: `echo 'Contents from WT_TEST/test_checkpoint_snapshot04.test_checkpoint_snapshot04.test_checkpoint_snapshot(target).0/stderr.txt:'; cat WT_TEST/test_checkpoint_snapshot04.test_checkpoint_snapshot04.test_checkpoint_snapshot(target).0/stderr.txt' [2021/05/12 14:38:08.765] Finished 'shell.exec' in "dump stderr/stdout" in 13.444636ms
We need to fix the dump command to make it work with macOS.
- is depended on by
-
WT-6230 Sanitize python test suite directory naming
- Closed