mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 11:27:28 -03:00
Merge bitcoin/bitcoin#30952: test: Use shell builtins in run_command test case
Some checks are pending
Some checks are pending
7bd3ee62f6
test: Use shell builtins in run_command test case (Ava Chow) Pull request description: Uses the [suggested command](https://github.com/bitcoin/bitcoin/issues/30938#issuecomment-2363906135) Fixes #30938 ACKs for top commit: maflcko: review ACK7bd3ee62f6
hebasto: ACK7bd3ee62f6
. Tree-SHA512: 683b15cafaf0103eeadf872ea6ce9a7d884b2605d3dcf4e66b0173cdb149c24965e7c5fa62aaddf2ac55df3f449aeb787176992c96cfee5d0b86621259e1dfe9
This commit is contained in:
commit
393f323bd6
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ BOOST_AUTO_TEST_CASE(run_command)
|
|||
}
|
||||
{
|
||||
// Return non-zero exit code, with error message for stderr
|
||||
const std::string command{"python3 -c 'import sys; print(\"err\", file=sys.stderr); sys.exit(2)'"};
|
||||
const std::string command{"sh -c 'echo err 1>&2 && false'"};
|
||||
const std::string expected{"err"};
|
||||
BOOST_CHECK_EXCEPTION(RunCommandParseJSON(command), std::runtime_error, [&](const std::runtime_error& e) {
|
||||
const std::string what(e.what());
|
||||
|
|
Loading…
Reference in a new issue