mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
support/testing: test_bitcoin.py: use assertRunNotOk()
Use the helper to simplify the test.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 830e0f49bb)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
0a891269b9
commit
2500d8534f
@@ -101,8 +101,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