ソースを参照

arm/lib/fvp/runner: don't pass '' as cwd

Don't pass "" as the cwd as that fails, use None so the cwd doesn't get
changed.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
Ross Burton 1 年間 前
コミット
98e85b3a29
1 ファイル変更1 行追加1 行削除
  1. 1 1
      meta-arm/lib/fvp/runner.py

+ 1 - 1
meta-arm/lib/fvp/runner.py

@@ -100,7 +100,7 @@ class FVPRunner:
                 env[name] = os.environ[name]
 
         # Allow filepath to be relative to fvp configuration file
-        cwd = os.path.dirname(fvpconf)
+        cwd = os.path.dirname(fvpconf) or None
         self._logger.debug(f"FVP call will be executed in working directory: {cwd}")
 
         self._logger.debug(f"Constructed FVP call: {shlex_join(cli)}")