diff options
Diffstat (limited to 'tests/unittests/test_commands_extract.py')
| -rw-r--r-- | tests/unittests/test_commands_extract.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unittests/test_commands_extract.py b/tests/unittests/test_commands_extract.py index b7e83056..cc117bbc 100644 --- a/tests/unittests/test_commands_extract.py +++ b/tests/unittests/test_commands_extract.py @@ -27,8 +27,9 @@ class TestExtractRootFsImageUrl(CiTestCase): tmpd = self.tmp_dir() target = self.tmp_path("target_d", tmpd) startdir = os.getcwd() + fname = "my.img" try: - fname = os.path.join(tmpd, "my.img") + os.chdir(tmpd) util.write_file(fname, fname + " data\n") extract_root_fsimage_url("file://" + fname, target) finally: |
