[Ezbench-dev] [PATCH 14/25] test/piglit: allow keeping piglit/igt reports
Petri Latvala
petri.latvala at intel.com
Fri Feb 24 11:19:15 UTC 2017
From: Martin Peres <martin.peres at linux.intel.com>
---
tests.d/piglit/piglit.test | 8 ++++++--
user_parameters.sh.sample | 1 +
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/tests.d/piglit/piglit.test b/tests.d/piglit/piglit.test
index b8d2ec7..ff5df4b 100644
--- a/tests.d/piglit/piglit.test
+++ b/tests.d/piglit/piglit.test
@@ -50,8 +50,12 @@ END
echo ": completed"
fi
- # delete the temporary report
- rm -rf "${piglit_output}" 2>&1
+ # delete or move the report
+ if [ "$PIGLIT_KEEP_REPORTS" -eq 1 ]; then
+ mv "${piglit_output}" "${run_log_file}_done"
+ else
+ rm -rf "${piglit_output}" 2>&1
+ fi
return 0
}
diff --git a/user_parameters.sh.sample b/user_parameters.sh.sample
index 00d9da7..2c2088c 100644
--- a/user_parameters.sh.sample
+++ b/user_parameters.sh.sample
@@ -98,6 +98,7 @@ TESSERACT_FOLDER=/opt/benchmarks/tesseract
# Piglit run parameters
PIGLIT_RUN_PARAMS=''
+#PIGLIT_KEEP_REPORTS=1
# PolyBench-ACC settings
# https://github.com/cavazos-lab/PolyBench-ACC
--
2.9.3
More information about the Ezbench-dev
mailing list