mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
support/testing: test_bitcoin.py: use assertRunNotOk()
Use the helper to simplify the test. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
@@ -108,8 +108,7 @@ class TestBitcoin(infra.basetest.BRTest):
|
||||
# The bitcoin daemon is not started. A client ping is expected
|
||||
# to fail.
|
||||
ping_cmd = f"{self.cli_cmd} ping"
|
||||
_, ret = self.emulator.run(ping_cmd)
|
||||
self.assertNotEqual(ret, 0)
|
||||
self.assertRunNotOk(ping_cmd)
|
||||
|
||||
# Start the daemon.
|
||||
cmd = f"bitcoind -regtest -daemonwait -fallbackfee={btc_fee:f}"
|
||||
|
||||
Reference in New Issue
Block a user