diff options
author | Javi Merino <javi.merino@arm.com> | 2014-04-08 16:45:58 +0100 |
---|---|---|
committer | Javi Merino <javi.merino@arm.com> | 2014-04-08 16:45:58 +0100 |
commit | 4a1c2e7ec16c0afa4b09412dc8262b0ad0263230 (patch) | |
tree | b9070f1c88fcb410fddc79e1e4ba48c51bb0b9ee | |
parent | c26e1c7d94737153725b85b7a4378c5598028dd8 (diff) | |
download | trappy-4a1c2e7ec16c0afa4b09412dc8262b0ad0263230.tar.gz |
tests: return to the previous dir after running TestEmptyThermal
-rw-r--r-- | tests/test_thermal.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_thermal.py b/tests/test_thermal.py index 69a58de..c4a01b6 100644 --- a/tests/test_thermal.py +++ b/tests/test_thermal.py @@ -92,6 +92,7 @@ class TestThermal(TestThermalBase): class TestEmptyThermal(unittest.TestCase): def setUp(self): + self.previous_dir = os.getcwd() self.out_dir = tempfile.mkdtemp() os.chdir(self.out_dir) with open("trace.txt", "w") as fout: @@ -117,6 +118,7 @@ CPU:7 [204600 EVENTS DROPPED] <...>-3979 [007] 217.980268: sched_task_load_contrib: comm=Thread-103 pid=3979 load_contrib=2500""") def tearDown(self): + os.chdir(self.previous_dir) shutil.rmtree(self.out_dir) def test_empty_trace_txt(self): |