[Ezbench-dev] [PATCH 15/15] test/piglit: allow keeping piglit/igt reports
Martin Peres
martin.peres at linux.intel.com
Mon Jan 30 20:54:13 UTC 2017
---
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 0a53ee6..3259feb 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
}
function __piglit_resume__ {
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.11.0
More information about the Ezbench-dev
mailing list