1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 23:08:14 +00:00

tests: use appropriate env variables to set emulator profile dir

This commit is contained in:
Pavol Rusnak 2019-09-10 20:56:36 +02:00
parent 775a27f736
commit ee84450fe7
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -42,7 +42,10 @@ class EmulatorWrapper:
env = ENV
if self.gen == "core":
args += ["-m", "main"]
# for firmware 2.1.2 and newer
env["TREZOR_PROFILE_DIR"] = self.workdir.name
# for firmware 2.1.1 and older
env["TREZOR_PROFILE"] = self.workdir.name
self.process = subprocess.Popen(
args, cwd=self.workdir.name, env=ENV, stdout=open(os.devnull, "w")
)