Skip to content

Commit

Permalink
build(core): fix random order seed when using zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
matejcik committed Apr 7, 2024
1 parent 8f73bde commit eb65cf6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ TREZOR_FIDO2_UDP_PORT = 21326
RUST_TARGET=$(shell rustc -vV | sed -n 's/host: //p')

MULTICORE ?= "auto"
RANDOM=$(shell python -c 'import random; print(random.randint(0, 1000000))')

## help commands:

Expand Down Expand Up @@ -147,7 +148,7 @@ test_emu: ## run selected device tests from python-trezor

test_emu_multicore: ## run device tests using multiple cores
$(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) \
--lang=$(TEST_LANG)

test_emu_monero: ## run selected monero device tests from monero-agent
Expand Down Expand Up @@ -183,7 +184,7 @@ test_emu_ui: ## run ui integration tests
test_emu_ui_multicore: ## run ui integration tests using multiple cores
$(PYTEST) -n $(MULTICORE) $(TESTPATH)/device_tests $(TESTOPTS) --timeout $(PYTEST_TIMEOUT) \
--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) \
--lang=$(TEST_LANG)

test_emu_ui_record: ## record and hash screens for ui integration tests
Expand Down

0 comments on commit eb65cf6

Please sign in to comment.