aboutsummaryrefslogtreecommitdiffstats
path: root/rpm/rootfs-scripts/report.py
diff options
context:
space:
mode:
authorQiu Tingting <qiutt@fujitsu.com>2022-05-26 13:48:51 +0800
committerQiu Tingting <qiutt@fujitsu.com>2022-05-26 13:48:51 +0800
commitdaed111bea534c63ed6906e8e0c1b5578e324838 (patch)
treed6245a713b21bd494469a38ac18d31e35cb01f16 /rpm/rootfs-scripts/report.py
parent3956e11df8cff8bc2e8feb4564b63c13daf27f49 (diff)
qa-test-misc: rewrite rpm tests with AGLBaseTest class
Rewrite the run_tests.py with AGLBaseTest class added in agl-test-framework. Delete the parser.py and report.py. Bug-AGL: SPEC-4345 Signed-off-by: Qiu Tingting <qiutt@fujitsu.com> Change-Id: If86c283f6f207fe08912acb7e5e1b754fcb5ea36
Diffstat (limited to 'rpm/rootfs-scripts/report.py')
-rw-r--r--rpm/rootfs-scripts/report.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/rpm/rootfs-scripts/report.py b/rpm/rootfs-scripts/report.py
deleted file mode 100644
index 8540e69..0000000
--- a/rpm/rootfs-scripts/report.py
+++ /dev/null
@@ -1,26 +0,0 @@
-import plugins.agl_test_report as agl_test_report
-
-def log_report(test_cases_values_and_status,THIS_TEST):
- #Get case_status, it's looks like : {'test_id': 'status',...}
- case_status = {}
- case_status = agl_test_report.get_case_status(test_cases_values_and_status)
-
- #Get the summary of the test case status, the result is like that:
- #Summary = [["collected",num1],["passed",num2],["failed",num3],["skipped",num4]]
- summary = []
- summary = agl_test_report.get_summary(case_status)
-
- #Judge whether the test set passes
- test_set_status = "null"
- if (summary[1][1] == summary[0][1]):
- test_set_status = "passed"
- else:
- test_set_status = "failed"
-
- agl_test_report.write_date_to_json(THIS_TEST,test_set_status,summary,case_status)
-
- #Package log file
- agl_test_report.log_compress(THIS_TEST)
-
- html = agl_test_report.get_report_html(THIS_TEST,test_set_status,summary,case_status)
- agl_test_report.write_to_html_file(THIS_TEST,html)