From: Damien Lespiau Subject: [PATCH 15/23] piglit: Support R= as RESUME= for the lazies Date: Fri, 15 Nov 2013 16:33:32 +0000 Message-ID: <1384533220-20780-16-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 A5D4BFB8F7 for ; Fri, 15 Nov 2013 08:33:59 -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 Signed-off-by: Damien Lespiau --- Makefile.am | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile.am b/Makefile.am index bd86a29..5086406 100644 --- a/Makefile.am +++ b/Makefile.am @@ -58,13 +58,14 @@ TEST_TARGETS := # TEST_TARGETS += run-test run-tests: - @if [ -n "$(RESUME)" ]; then \ - [ ! -f $(RESUME)/main ] && { \ - echo "$(RESUME) is not a valid piglit project"; \ + @[ -z "$(RESUME)" -a -n "$(R)" ] && RESUME=$(R); \ + if [ -n "$$RESUME" ]; then \ + [ ! -f $$RESUME/main ] && { \ + echo "$$RESUME is not a valid piglit project"; \ exit 1; \ }; \ - output=$(RESUME); \ - echo "Resuming $(RESUME)..."; \ + output=$$RESUME; \ + echo "Resuming $$RESUME..."; \ PIGLIT_FLAGS="--resume $$PIGLIT_FLAGS"; \ else \ source $(srcdir)/scripts/build-piglit.sh && \ -- 1.8.3.1