From 0ed9f520daca0dbb58bd278e709aff4b298e238f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 26 Jun 2016 13:57:13 +0100 Subject: [PATCH] tests: fail the build if symlinking tests/ostree fails Signed-off-by: Simon McVittie Closes: #367 Approved by: cgwalters --- Makefile-tests.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile-tests.am b/Makefile-tests.am index 25b8202f..9be9061b 100644 --- a/Makefile-tests.am +++ b/Makefile-tests.am @@ -245,7 +245,8 @@ ALL_LOCAL_RULES += tests/libreaddir-rand.so CLEANFILES += tests/libreaddir-rand.so tests/ostree-symlink-stamp tests/ostree tests/ostree-symlink-stamp: Makefile - @real_bin=`cd $(top_builddir) && ./libtool --mode=execute echo ostree`; \ + @set -e; \ + real_bin=`cd $(top_builddir) && ./libtool --mode=execute echo ostree`; \ ln -sf "$${real_bin}" tests/ostree; \ touch $@