aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur <arthur.she@linaro.org>2019-06-05 17:15:01 -0700
committerArthur <arthur.she@linaro.org>2019-06-05 17:15:01 -0700
commite689d3e0f010498bb170a1b57978695e8f4ad645 (patch)
treec2f176ce62e05fc6dbe5e0cb05dbda679e8b7177
parente35809fdc3467895518dac7e02df27af68a4624f (diff)
igt: dump test result with print-test-result.py
-rw-r--r--automated/linux/igt/dump-igt-chamelium-test-result.yaml36
-rw-r--r--automated/linux/igt/igt-chamelium-test.yaml7
2 files changed, 4 insertions, 39 deletions
diff --git a/automated/linux/igt/dump-igt-chamelium-test-result.yaml b/automated/linux/igt/dump-igt-chamelium-test-result.yaml
deleted file mode 100644
index 69ff51d..0000000
--- a/automated/linux/igt/dump-igt-chamelium-test-result.yaml
+++ /dev/null
@@ -1,36 +0,0 @@
-metadata:
- format: Lava-Test Test Definition 1.0
- name: dump-igt-chamelium-test-result
- description: "Dump igt-gpu-tools test result and upload the artiface to Artifactorial"
- maintainer:
- - arthur.she@linaro.org
- os:
- - debian
- - ubuntu
- - openembedded
- scope:
- - functional
- devices:
- - dragonboard-410c
- - x15
-
-params:
- ARTIFACTORIAL_URL: ""
- ARTIFACTORIAL_TOKEN: ""
-
-run:
- steps:
- - ifconfig; pwd; ls
- - if [ -n "`which html2text`" -a -d "/usr/share/igt-gpu-tools/results/html/" ]; then
- - ls /usr/share/igt-gpu-tools/results
- - echo "**********************************************";
- - echo "************ Dump IGT test result ************";
- - echo "**********************************************";
- - ls /usr/share/igt-gpu-tools/results/html/results/*|sort -r|xargs html2text; fi
- - if [ -n "${ARTIFACTORIAL_TOKEN}" -a -n "${ARTIFACTORIAL_URL}" ]; then
- - UPLOAD_TOOL="./automated/utils/upload-to-artifactorial.sh"
- - if [ -d "/root/dump-frames/" -a -n "`ls /root/dump-frames/`" ]; then echo "Got error frames.." ; tar -C /root -zcf dump-frames.tar.gz dump-frames/;
- - echo "*********************************************";
- - echo "************ Upload dump frames *************";
- - echo "*********************************************";
- - ${UPLOAD_TOOL} -a "dump-frames.tar.gz" -u "${ARTIFACTORIAL_URL}" -t "${ARTIFACTORIAL_TOKEN}"; fi; fi
diff --git a/automated/linux/igt/igt-chamelium-test.yaml b/automated/linux/igt/igt-chamelium-test.yaml
index dd4ddd5..ae7dc32 100644
--- a/automated/linux/igt/igt-chamelium-test.yaml
+++ b/automated/linux/igt/igt-chamelium-test.yaml
@@ -34,12 +34,13 @@ run:
- ./igt-chamelium-test.sh -c ${CHAMELIUM_IP} -h ${HDMI_DEV_NAME} -d ${IGT_DIR} ${TL}
# Dump igt test result and upload artifact to Artifactorial
- ifconfig; pwd; ls
- - if [ -n "`which html2text`" -a -d "/usr/share/igt-gpu-tools/results/html/" ]; then
- - ls /usr/share/igt-gpu-tools/results
+# - if [ -n "`which html2text`" -a -d "/usr/share/igt-gpu-tools/results/html/" ]; then
+# - ls /usr/share/igt-gpu-tools/results
- echo "**********************************************";
- echo "************ Dump IGT test result ************";
- echo "**********************************************";
- - ls /usr/share/igt-gpu-tools/results/html/results/*|sort -r|xargs html2text; fi
+# - ls /usr/share/igt-gpu-tools/results/html/results/*|sort -r|xargs html2text; fi
+ - bzcat /usr/share/igt-gpu-tools/results/results.json.bz2 | print-test-result.py
- if [ -n "${ARTIFACTORIAL_TOKEN}" -a -n "${ARTIFACTORIAL_URL}" ]; then
- UPLOAD_TOOL="../../utils/upload-to-artifactorial.sh"
- if [ -d "/root/dump-frames/" -a -n "`ls /root/dump-frames/`" ]; then echo "Got error frames.." ; tar -C /root -zcf dump-frames.tar.gz dump-frames/;