summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Abel <info@abel-ikt.de>2022-03-02 16:16:07 +0100
committerMichael Abel <info@abel-ikt.de>2022-03-02 16:16:07 +0100
commit501eb9d5b79192ee472e1fb4c88af1f4c277380b (patch)
treee50bb9889b5986ada89ac774060d29a0e325e502 /tests
parent17046143968d786ba0382b3c9610502d9871d342 (diff)
Make path also work from other locations
Diffstat (limited to 'tests')
-rw-r--r--tests/PySys/tedge/tedge_software_update/run.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PySys/tedge/tedge_software_update/run.py b/tests/PySys/tedge/tedge_software_update/run.py
index 588ffd29..86637196 100644
--- a/tests/PySys/tedge/tedge_software_update/run.py
+++ b/tests/PySys/tedge/tedge_software_update/run.py
@@ -93,8 +93,8 @@ class PySysTest(EnvironmentC8y):
def validate(self):
self.assertGrep("tedge_config_get_new_value.out", f'{TEDGE_DOWNLOAD_DIR}', contains=True)
- with open("Output/linux/tedge_config_get_original.out", "r") as handle:
def mycleanup(self):
+ with open(os.path.join(self.output, "tedge_config_get_original.out"), "r") as handle:
original_value = handle.read().strip()
# reverting to original value