From 716f9216e33388fac455d854d80a1cff5e27d9d7 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Mon, 28 Jan 2019 13:21:13 +0100 Subject: [PATCH] init device in docker --- test/scripts/init-device.js | 6 ++++++ test/scripts/run-all.sh | 5 ++++- test/support/index.js | 7 +------ 3 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 test/scripts/init-device.js diff --git a/test/scripts/init-device.js b/test/scripts/init-device.js new file mode 100644 index 00000000..d53b32df --- /dev/null +++ b/test/scripts/init-device.js @@ -0,0 +1,6 @@ +import 'babel-polyfill'; +import { initSeedAllDevice } from 'trezor-bridge-communicator'; + +(async () => { + await initSeedAllDevice(); +})(); \ No newline at end of file diff --git a/test/scripts/run-all.sh b/test/scripts/run-all.sh index 89719bdd..a62b283e 100755 --- a/test/scripts/run-all.sh +++ b/test/scripts/run-all.sh @@ -13,5 +13,8 @@ cd /trezor-emulator/trezor-core && PYOPT=0 ./emu.sh & # run wallet cd /trezor-wallet && yarn run server:stable & +# init device +npx babel-node test/scripts/init-device.js & + # run tests -yarn run test-integration:gitlab -c baseUrl="https://localhost:8080/#/" +yarn run test-integration:gitlab -c baseUrl="https://localhost:8080/#/" & diff --git a/test/support/index.js b/test/support/index.js index 4777c0c6..64325132 100644 --- a/test/support/index.js +++ b/test/support/index.js @@ -1,7 +1,2 @@ import 'babel-polyfill'; -import './commands'; -import { initSeedAllDevice } from 'trezor-bridge-communicator'; - -before(async () => { - await initSeedAllDevice(); -}); \ No newline at end of file +import './commands'; \ No newline at end of file