It can happen that the machine hard hangs in one of tests, say, drv_module_reload. We really want to support resuming the run in that case (probably excluding the faulty test as well). This commit adds an easy way to do that: sudo make run-tests PIGLIT_FLAGS="-x module_reload" RESUME=20131114-piglit-results.1 Signed-off-by: Damien Lespiau <damien.lespiau@xxxxxxxxx> --- Makefile.am | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 471dd3d..5742b82 100644 --- a/Makefile.am +++ b/Makefile.am @@ -58,9 +58,18 @@ TEST_TARGETS := # TEST_TARGETS += run-test run-tests: - @source $(srcdir)/scripts/build-piglit.sh && \ - output=$$(igt_result_directory) && \ - $(PIGLIT) $(IGT_TESTS) $$output && \ + @if [ -n "$(RESUME)" ]; then \ + [ ! -f $(RESUME)/main ] && { \ + echo "$(RESUME) is not a valid piglit project"; \ + exit 1; \ + }; \ + output=$(RESUME); \ + echo "Resuming $(RESUME)..."; \ + PIGLIT_FLAGS="--resume $$PIGLIT_FLAGS"; \ + else \ + source $(srcdir)/scripts/build-piglit.sh && \ + output=$$(igt_result_directory); \ + fi; \ $(PIGLIT) $${PIGLIT_FLAGS} $(IGT_TESTS) $$output && \ $(PIGLIT_HTML) $$output/html $$output/main && \ $(PIGLIT_SUMMARY) $$output/main -- 1.8.3.1 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx