diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-11-06 12:28:42 +0000 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2015-11-06 12:37:10 +0000 |
commit | ab9da2ed0ed7c135872d906e92131588db34b782 (patch) | |
tree | fb2cf7d09559c18e7e6d3b454f8d5ec122d59316 /yarns | |
parent | 6477d1d4def03afc545a706b2a2666371e028130 (diff) | |
download | vmdebootstrap-ab9da2ed0ed7c135872d906e92131588db34b782.tar.gz |
Fix run-tests to run from ŕoot of source tree
Diffstat (limited to 'yarns')
-rwxr-xr-x | yarns/run-tests | 11 |
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 "$@" |