summaryrefslogtreecommitdiffstats
path: root/glib2/rootfs-scripts/report.py
diff options
context:
space:
mode:
authorduerpei <duep.fnst@fujitsu.com>2022-06-29 16:05:12 +0800
committerduerpei <duep.fnst@fujitsu.com>2022-06-29 16:05:12 +0800
commitfe92db3b3f0b4b1e7bed9abe2ef376ef457e1a4c (patch)
tree7bf82741f079921eed9232ffb3c6ad9d15889621 /glib2/rootfs-scripts/report.py
parentdaed111bea534c63ed6906e8e0c1b5578e324838 (diff)
qa-test-misc: delete glib2 and rpm
Due to the adjustment of the framework, the scripts running the test set are moved to 'agl-test-framework', so they are deleted from 'qa-test-misc' According to the previous discussion, rpm will use its ptest, so rpm also be deleted. Bug-AGL: SPEC-4345 Signed-off-by: duerpei <duep.fnst@fujitsu.com> Change-Id: Ib5fb19f410a63d3f68d83714a41dc1beeb053d45
Diffstat (limited to 'glib2/rootfs-scripts/report.py')
-rw-r--r--glib2/rootfs-scripts/report.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/glib2/rootfs-scripts/report.py b/glib2/rootfs-scripts/report.py
deleted file mode 100644
index 8540e69..0000000
--- a/glib2/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)