File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,11 @@ def replace(smo: Match) -> str:
426
426
if name not in self ._dirs :
427
427
tmp_dir = mkdtemp (prefix = 'qemu_ot_dir_' )
428
428
self ._dirs [name ] = tmp_dir
429
- return self ._dirs [name ]
429
+ else :
430
+ tmp_dir = self ._dirs [name ]
431
+ if not tmp_dir .endswith (sep ):
432
+ tmp_dir = f'{ tmp_dir } { sep } '
433
+ return tmp_dir
430
434
nvalue = re_sub (r'\@\{(\w*)\}/' , replace , value )
431
435
if nvalue != value :
432
436
self ._log .debug ('Interpolate %s with %s' , value , nvalue )
@@ -1160,6 +1164,7 @@ def _build_test_args(self, test_name: str) \
1160
1164
if opts and not isinstance (opts , list ):
1161
1165
raise ValueError ('fInvalid QEMU options for {test_name}' )
1162
1166
opts = self .flatten ([opt .split (' ' ) for opt in opts ])
1167
+ opts = [self ._qfm .interpolate_dirs (opt , test_name ) for opt in opts ]
1163
1168
timeout = int (kwargs .get ('timeout' , DEFAULT_TIMEOUT ))
1164
1169
return Namespace (** kwargs ), opts or [], timeout
1165
1170
You can’t perform that action at this time.
0 commit comments