summaryrefslogtreecommitdiff
path: root/test-cli/test/tests/qdmesg.py
diff options
context:
space:
mode:
Diffstat (limited to 'test-cli/test/tests/qdmesg.py')
-rw-r--r--test-cli/test/tests/qdmesg.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/test-cli/test/tests/qdmesg.py b/test-cli/test/tests/qdmesg.py
index 8117deb..b35f1ff 100644
--- a/test-cli/test/tests/qdmesg.py
+++ b/test-cli/test/tests/qdmesg.py
@@ -17,19 +17,14 @@ class Qdmesg:
print("running dmesg test")
self.pgObj.run_test(self.params["testidctl"], self.params["testid"])
# delete previous file
- if path.exists("/tmp/station/dmesg.txt"):
- os.remove("/tmp/station/dmesg.txt")
+ if path.exists("/mnt/station_ramdisk/dmesg.txt"):
+ os.remove("/mnt/station_ramdisk/dmesg.txt")
# generate file
- p = sh.dmesg("--color=never", _out="/tmp/station/dmesg.txt")
+ p = sh.dmesg("--color=never", _out="/mnt/station_ramdisk/dmesg.txt")
if p.exit_code == 0:
- # save result
- # with open('/tmp/station/dmesg.txt', 'w') as outfile:
- # n = outfile.write(p.stdout.decode('ascii'))
- # outfile.close()
-
# save dmesg result in DB
self.pgObj.upload_result_file(self.params["testidctl"], self.params["testid"], "dmesg output",
- "/tmp/station/dmesg.txt", "text/plain")
+ "/mnt/station_ramdisk/dmesg.txt", "text/plain")
self.pgObj.finish_test(self.params["testidctl"], self.params["testid"], "TEST_COMPLETE", "")
print("success dmesg test")
else: