summaryrefslogtreecommitdiff
path: root/test-cli/test/tests/qdmesg.py
diff options
context:
space:
mode:
authorHector Fernandez <hector@iatec.biz>2020-07-06 17:22:17 +0200
committerHector Fernandez <hector@iatec.biz>2020-07-06 17:22:17 +0200
commit1d51a80b57cc8c80c78d67c85290503997060e9e (patch)
treeb39712b4f90369280e75adfee3ef81a128dfe3e8 /test-cli/test/tests/qdmesg.py
parentcd3c8dd78e3bcdd442967583e3814db3701871c0 (diff)
downloadboard-1d51a80b57cc8c80c78d67c85290503997060e9e.zip
board-1d51a80b57cc8c80c78d67c85290503997060e9e.tar.gz
board-1d51a80b57cc8c80c78d67c85290503997060e9e.tar.bz2
Modified paths of ram and nfs temporary folders.
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: