Skip to content

Commit

Permalink
Update test readme
Browse files Browse the repository at this point in the history
  • Loading branch information
timemarkovqtum committed Sep 25, 2023
1 parent bcd6810 commit fd2b0dc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pip install -r requirements.txt
Some tests require the `bitcoind 22.0` binary to be in the `$PATH` variable, or alternatively to be set as the `BITCOIND` environment variable in the shell running the tests:

```
export BITCOIND=/path/to/my/bitcoind
export BITCOIND=/path/to/my/qtumd
```

## Launch with Speculos
Expand Down Expand Up @@ -46,4 +46,4 @@ Be sure to have you device connected through USB (without any other software int
pytest --hid
```

Please note that tests that require an automation file are meant for speculos, and will currently hang the test suite.
Please note that tests that require an automation file are meant for speculos, and will currently hang the test suite.
4 changes: 2 additions & 2 deletions tests_mainnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pip install -r requirements.txt
Build the app as normal for mainnet from the root folder:

```
COIN=bitcoin DEBUG=0 make
COIN=qtum DEBUG=0 make
```

Then run all the tests from this folder with:
Expand All @@ -40,4 +40,4 @@ Be sure to have you device connected through USB (without any other software int
pytest --hid
```

Please note that tests that require an automation file are meant for speculos, and will currently hang the test suite.
Please note that tests that require an automation file are meant for speculos, and will currently hang the test suite.
2 changes: 1 addition & 1 deletion tests_mainnet/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Make sure that the native client library is used, as speculos would otherwise
# return a version number < 2.0.0 for the app
os.environ['SPECULOS_APPNAME'] = f'Bitcoin:{get_app_version()}'
os.environ['SPECULOS_APPNAME'] = f'Qtum:{get_app_version()}'

os.environ["BITCOIN_NETWORK"] = "main"

Expand Down
2 changes: 1 addition & 1 deletion tests_mainnet/test_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ def test_dashboard(comm: SpeculosClient, is_speculos: bool, app_version: str, mo
comm.wait_for_text_event("Quit")

comm.press_and_release("right")
comm.wait_for_text_event("Bitcoin")
comm.wait_for_text_event("Qtum")
comm.wait_for_text_event("is ready")

0 comments on commit fd2b0dc

Please sign in to comment.