[PATCH 17/23] piglit: Make sure there's no DRM master before launching the tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Also, use && between statements so we stop the chain once something
fails.

Signed-off-by: Damien Lespiau <damien.lespiau@xxxxxxxxx>
---
 Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 5086406..e790efe 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -59,6 +59,7 @@ TEST_TARGETS := #
 TEST_TARGETS += run-test
 run-tests:
 	@[ -z "$(RESUME)" -a -n "$(R)" ] && RESUME=$(R); \
+	$(srcdir)/tests/check_drm_clients && \
 	if [ -n "$$RESUME" ]; then \
 		[ ! -f $$RESUME/main ] && { \
 			echo "$$RESUME is not a valid piglit project"; \
@@ -70,7 +71,7 @@ run-tests:
 	else \
 		source $(srcdir)/scripts/build-piglit.sh && \
 		output=$$(igt_result_directory); \
-	fi; \
+	fi && \
 	$(PIGLIT) $${PIGLIT_FLAGS} $(IGT_TESTS) $$output && \
 	$(PIGLIT_HTML) --overwrite $$output/html $$output/main && \
 	echo "HTML summary is at $$output/html/index.html" && \
-- 
1.8.3.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux