@@ -171,7 +171,6 @@ def ffx_isolate_dir(self):
171
171
def home_dir (self ):
172
172
return os .path .join (self .tmp_dir (), "user-home" )
173
173
174
-
175
174
def start_ffx_isolation (self ):
176
175
# Most of this is translated directly from ffx's isolate library
177
176
os .mkdir (self .ffx_isolate_dir ())
@@ -424,7 +423,7 @@ def start(self):
424
423
)
425
424
426
425
# Create lockfiles
427
- open (self .pm_lockfile_path (), 'a' ).close ()
426
+ open (self .pm_lockfile_path (), "a" ).close ()
428
427
429
428
# Write to file
430
429
self .write_to_file ()
@@ -458,6 +457,7 @@ def start(self):
458
457
],
459
458
use: [
460
459
{{ storage: "data", path: "/data" }},
460
+ {{ storage: "tmp", path: "/tmp" }},
461
461
{{ protocol: [ "fuchsia.process.Launcher" ] }},
462
462
{{ protocol: [ "fuchsia.posix.socket.Provider" ] }}
463
463
],
@@ -571,6 +571,9 @@ def log(msg):
571
571
if os .getenv ("RUST_BACKTRACE" ) == None :
572
572
env_vars += f'\n "RUST_BACKTRACE=0",'
573
573
574
+ # Use /tmp as the test temporary directory
575
+ env_vars += f'\n "RUST_TEST_TMPDIR=/tmp",'
576
+
574
577
cml .write (
575
578
self .CML_TEMPLATE .format (env_vars = env_vars , exe_name = exe_name )
576
579
)
@@ -642,7 +645,7 @@ def log(msg):
642
645
log ("Publishing package to repo..." )
643
646
644
647
# Publish package to repo
645
- with open (self .pm_lockfile_path (), 'w' ) as pm_lockfile :
648
+ with open (self .pm_lockfile_path (), "w" ) as pm_lockfile :
646
649
fcntl .lockf (pm_lockfile .fileno (), fcntl .LOCK_EX )
647
650
subprocess .check_call (
648
651
[
@@ -1045,9 +1048,7 @@ def print_help(args):
1045
1048
)
1046
1049
debug_parser .set_defaults (func = debug )
1047
1050
1048
- syslog_parser = subparsers .add_parser (
1049
- "syslog" , help = "prints the device syslog"
1050
- )
1051
+ syslog_parser = subparsers .add_parser ("syslog" , help = "prints the device syslog" )
1051
1052
syslog_parser .set_defaults (func = syslog )
1052
1053
1053
1054
args = parser .parse_args ()
0 commit comments