Skip to content

Commit e24a25d

Browse files
committed
test: Use shell builtins in run_command test case
Github-Pull: bitcoin#30952 Rebased-From: 7bd3ee6
1 parent 1147e72 commit e24a25d

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
@@ -54,7 +54,7 @@ BOOST_AUTO_TEST_CASE(run_command)
5454
}
5555
{
5656
// Return non-zero exit code, with error message for stderr
57-
const std::string command{"python3 -c 'import sys; print(\"err\", file=sys.stderr); sys.exit(2)'"};
57+
const std::string command{"sh -c 'echo err 1>&2 && false'"};
5858
const std::string expected{"err"};
5959
BOOST_CHECK_EXCEPTION(RunCommandParseJSON(command), std::runtime_error, [&](const std::runtime_error& e) {
6060
const std::string what(e.what());

0 commit comments

Comments
 (0)