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}"