From: Damien Lespiau Subject: [PATCH 17/23] piglit: Make sure there's no DRM master before launching the tests Date: Fri, 15 Nov 2013 16:33:34 +0000 Message-ID: <1384533220-20780-18-git-send-email-damien.lespiau@intel.com> References: <1384533220-20780-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 39891FB884 for ; Fri, 15 Nov 2013 08:34:01 -0800 (PST) In-Reply-To: <1384533220-20780-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Also, use && between statements so we stop the chain once something fails. Signed-off-by: Damien Lespiau --- 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