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:
parent
775a27f736
commit
ee84450fe7
@ -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")
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user