From 649d14898f48454be856f94ad1d9acd7050a2d7a Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 18 Sep 2019 19:14:35 +0200 Subject: [PATCH] core/tests: remove also sdcard files in test runner --- core/tests/run_tests_device_emu.sh | 3 ++- core/tests/run_tests_device_emu_monero.sh | 3 ++- core/tests/run_tests_device_emu_u2f.sh | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/core/tests/run_tests_device_emu.sh b/core/tests/run_tests_device_emu.sh index e810d73fd3..9a21365c93 100755 --- a/core/tests/run_tests_device_emu.sh +++ b/core/tests/run_tests_device_emu.sh @@ -14,8 +14,9 @@ upy_pid="" if [[ $RUN_TEST_EMU > 0 ]]; then source ../trezor_cmd.sh - # remove flash before run to prevent inconsistent states + # remove flash and sdcard files before run to prevent inconsistent states mv "${TREZOR_PROFILE_DIR}/trezor.flash" "${TREZOR_PROFILE_DIR}/trezor.flash.bkp" 2>/dev/null + mv "${TREZOR_PROFILE_DIR}/trezor.sdcard" "${TREZOR_PROFILE_DIR}/trezor.sdcard.bkp" 2>/dev/null cd "${TREZOR_SRC}" echo "Starting emulator: $MICROPYTHON $ARGS ${MAIN}" diff --git a/core/tests/run_tests_device_emu_monero.sh b/core/tests/run_tests_device_emu_monero.sh index 714dd3bb64..a0642cf161 100755 --- a/core/tests/run_tests_device_emu_monero.sh +++ b/core/tests/run_tests_device_emu_monero.sh @@ -16,8 +16,9 @@ upy_pid="" if [[ $RUN_TEST_EMU > 0 ]]; then source ../trezor_cmd.sh - # remove flash before run to prevent inconsistent states + # remove flash and sdcard files before run to prevent inconsistent states mv "${TREZOR_PROFILE_DIR}/trezor.flash" "${TREZOR_PROFILE_DIR}/trezor.flash.bkp" 2>/dev/null + mv "${TREZOR_PROFILE_DIR}/trezor.sdcard" "${TREZOR_PROFILE_DIR}/trezor.sdcard.bkp" 2>/dev/null cd "${TREZOR_SRC}" echo "Starting emulator: $MICROPYTHON $ARGS ${MAIN}" diff --git a/core/tests/run_tests_device_emu_u2f.sh b/core/tests/run_tests_device_emu_u2f.sh index d7f7f7296b..6f6a4efc02 100755 --- a/core/tests/run_tests_device_emu_u2f.sh +++ b/core/tests/run_tests_device_emu_u2f.sh @@ -14,8 +14,9 @@ upy_pid="" if [[ $RUN_TEST_EMU > 0 ]]; then source ../trezor_cmd.sh - # remove flash before run to prevent inconsistent states + # remove flash and sdcard files before run to prevent inconsistent states mv "${TREZOR_PROFILE_DIR}/trezor.flash" "${TREZOR_PROFILE_DIR}/trezor.flash.bkp" 2>/dev/null + mv "${TREZOR_PROFILE_DIR}/trezor.sdcard" "${TREZOR_PROFILE_DIR}/trezor.sdcard.bkp" 2>/dev/null cd "${TREZOR_SRC}" echo "Starting emulator: $MICROPYTHON $ARGS ${MAIN}"