Signed-off-by: Damien Lespiau <[email protected]>
---
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
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx