Skip to content

Commit 7bd3ee6

Browse files
committed
test: Use shell builtins in run_command test case
1 parent 33adc75 commit 7bd3ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/system_tests.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ BOOST_AUTO_TEST_CASE(run_command)
4747
}
4848
{
4949
// Return non-zero exit code, with error message for stderr
50-
const std::string command{"python3 -c 'import sys; print(\"err\", file=sys.stderr); sys.exit(2)'"};
50+
const std::string command{"sh -c 'echo err 1>&2 && false'"};
5151
const std::string expected{"err"};
5252
BOOST_CHECK_EXCEPTION(RunCommandParseJSON(command), std::runtime_error, [&](const std::runtime_error& e) {
5353
const std::string what(e.what());

0 commit comments

Comments
 (0)