summaryrefslogtreecommitdiff
path: root/test-cli/test/tasks/generatedmesg.py
diff options
context:
space:
mode:
Diffstat (limited to 'test-cli/test/tasks/generatedmesg.py')
-rw-r--r--test-cli/test/tasks/generatedmesg.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/test-cli/test/tasks/generatedmesg.py b/test-cli/test/tasks/generatedmesg.py
deleted file mode 100644
index aa9d9ce..0000000
--- a/test-cli/test/tasks/generatedmesg.py
+++ /dev/null
@@ -1,17 +0,0 @@
-import sh
-
-
-def generate_dmesg(tidctl, pgObj):
- print("Start getting DMESG...")
- p = sh.dmesg("--color=never")
- if p.exit_code != 0:
- print("DMESG: Unknown error.")
- return 1
- else:
- # save dmesg in a file
- with open('/tmp/dmesg.txt', 'w') as outfile:
- n = outfile.write(p.stdout.decode('ascii'))
- # save dmesg result in DB
- pgObj.upload_dmesg(tidctl, '/tmp/dmesg.txt')
- print("DMESG: saved succesfully.")
- return 0