diff options
author | Arthur <arthur.she@linaro.org> | 2019-05-31 07:08:06 -0700 |
---|---|---|
committer | Arthur <arthur.she@linaro.org> | 2019-05-31 07:08:06 -0700 |
commit | 272cd829a2139ae637ba456536587df25ea49bb9 (patch) | |
tree | 7d5aa4599f15f4eeaa0b28795e38303b7424c205 | |
parent | 40f156b52c38dba5dd20352752917b50fa28e65e (diff) |
igt: combine dump-igt-chamelium-test-result.yaml to igt-chamelium-test.yaml
-rw-r--r-- | automated/linux/igt/igt-chamelium-test.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/automated/linux/igt/igt-chamelium-test.yaml b/automated/linux/igt/igt-chamelium-test.yaml index b372f3d..0baa962 100644 --- a/automated/linux/igt/igt-chamelium-test.yaml +++ b/automated/linux/igt/igt-chamelium-test.yaml @@ -31,3 +31,18 @@ run: - if [ -n "${TEST_LIST}" ]; then TL="-t ${TEST_LIST}"; fi - ./igt-chamelium-test.sh -c ${CHAMELIUM_IP} -h ${HDMI_DEV_NAME} -d ${IGT_DIR} ${TL} - ../../utils/send-to-lava.sh result.log + # 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 + - 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 |