Fix Speculos tests
This commit is contained in:
4
.github/workflows/ci-workflow.yml
vendored
4
.github/workflows/ci-workflow.yml
vendored
@@ -72,10 +72,10 @@ jobs:
|
||||
|
||||
- run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
|
||||
|
||||
- name: Install node
|
||||
- name: Install NodeJS
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "14.4.0"
|
||||
node-version: "16"
|
||||
|
||||
- name: Install yarn
|
||||
run: npm install -g yarn
|
||||
|
||||
@@ -9,8 +9,6 @@ from ethereum_client.ethereum_cmd import EthereumCommand
|
||||
SCRIPT_DIR = Path(__file__).absolute().parent
|
||||
API_URL = "http://127.0.0.1:5000"
|
||||
|
||||
VERSION = {"nanos": "2.1", "nanox": "2.0.2", "nanosp": "1.0.3"}
|
||||
|
||||
|
||||
def pytest_addoption(parser):
|
||||
# nanos, nanox, nanosp
|
||||
@@ -27,7 +25,7 @@ def client(pytestconfig):
|
||||
file_path = pytestconfig.getoption("path")
|
||||
model = pytestconfig.getoption("model")
|
||||
|
||||
args = ['--log-level', 'speculos:DEBUG','--model', model, '--display', pytestconfig.getoption("display"), '--sdk', VERSION[model]]
|
||||
args = ['--log-level', 'speculos:DEBUG','--model', model, '--display', pytestconfig.getoption("display")]
|
||||
with SpeculosClient(app=str(file_path), args=args) as client:
|
||||
yield client
|
||||
|
||||
|
||||
Reference in New Issue
Block a user