mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-07 15:18:08 +00:00
build(core): fix random order seed when using zsh
This commit is contained in:
parent
8ebcb919ff
commit
1695f996e5
@ -65,6 +65,7 @@ TREZOR_FIDO2_UDP_PORT = 21326
|
|||||||
RUST_TARGET=$(shell rustc -vV | sed -n 's/host: //p')
|
RUST_TARGET=$(shell rustc -vV | sed -n 's/host: //p')
|
||||||
|
|
||||||
MULTICORE ?= "auto"
|
MULTICORE ?= "auto"
|
||||||
|
RANDOM=$(shell python -c 'import random; print(random.randint(0, 1000000))')
|
||||||
|
|
||||||
## help commands:
|
## help commands:
|
||||||
|
|
||||||
@ -99,7 +100,7 @@ test_emu: ## run selected device tests from python-trezor
|
|||||||
|
|
||||||
test_emu_multicore: ## run device tests using multiple cores
|
test_emu_multicore: ## run device tests using multiple cores
|
||||||
$(PYTEST) -n $(MULTICORE) $(TESTPATH)/device_tests $(TESTOPTS) --timeout $(PYTEST_TIMEOUT) \
|
$(PYTEST) -n $(MULTICORE) $(TESTPATH)/device_tests $(TESTOPTS) --timeout $(PYTEST_TIMEOUT) \
|
||||||
--control-emulators --model=core --random-order-seed=$(shell echo $$RANDOM)
|
--control-emulators --model=core --random-order-seed=$(RANDOM)
|
||||||
|
|
||||||
test_emu_monero: ## run selected monero device tests from monero-agent
|
test_emu_monero: ## run selected monero device tests from monero-agent
|
||||||
cd tests ; $(EMU_TEST) ./run_tests_device_emu_monero.sh $(TESTOPTS)
|
cd tests ; $(EMU_TEST) ./run_tests_device_emu_monero.sh $(TESTOPTS)
|
||||||
@ -133,7 +134,7 @@ test_emu_ui: ## run ui integration tests
|
|||||||
test_emu_ui_multicore: ## run ui integration tests using multiple cores
|
test_emu_ui_multicore: ## run ui integration tests using multiple cores
|
||||||
$(PYTEST) -n $(MULTICORE) $(TESTPATH)/device_tests $(TESTOPTS) --timeout $(PYTEST_TIMEOUT) \
|
$(PYTEST) -n $(MULTICORE) $(TESTPATH)/device_tests $(TESTOPTS) --timeout $(PYTEST_TIMEOUT) \
|
||||||
--ui=test --ui-check-missing --record-text-layout --do-master-diff \
|
--ui=test --ui-check-missing --record-text-layout --do-master-diff \
|
||||||
--control-emulators --model=core --random-order-seed=$(shell echo $$RANDOM)
|
--control-emulators --model=core --random-order-seed=$(RANDOM)
|
||||||
|
|
||||||
test_emu_ui_record: ## record and hash screens for ui integration tests
|
test_emu_ui_record: ## record and hash screens for ui integration tests
|
||||||
$(EMU_TEST) $(PYTEST) $(TESTPATH)/device_tests $(TESTOPTS) \
|
$(EMU_TEST) $(PYTEST) $(TESTPATH)/device_tests $(TESTOPTS) \
|
||||||
|
Loading…
Reference in New Issue
Block a user