summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xyarns/run-tests11
1 files changed, 9 insertions, 2 deletions
diff --git a/yarns/run-tests b/yarns/run-tests
index 4ef337b..fe6b021 100755
--- a/yarns/run-tests
+++ b/yarns/run-tests
@@ -18,5 +18,12 @@
set -eu
-cd "$(dirname "$0")"
-yarn -s shell.lib *.yarn "$@"
+die()
+{
+ echo "$@" 1>&2
+ exit 1
+}
+
+[ -e bin/vmdebootstrap ] ||
+ die "You need to run this at root of source tree"
+yarn -s yarns/shell.lib yarns/*.yarn "$@"