mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -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
45f26d60a9
commit
21bb39308f
@@ -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