summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-07-22 08:06:54 +0100
committerLars Wirzenius <liw@liw.fi>2013-07-22 08:06:54 +0100
commitb85ce2b1ee32503cd251f3d45548d22057a66837 (patch)
tree4fe8008027db4563119d196a3f6375da2a1abfce
parentf02f04190d1973b04790fd60968190b92ba67ef3 (diff)
downloadcmdtest-b85ce2b1ee32503cd251f3d45548d22057a66837.tar.gz
Run yarn in tests without user's config
-rwxr-xr-xyarn.tests/assuming-failure.script2
-rwxr-xr-xyarn.tests/assuming.script2
-rwxr-xr-xyarn.tests/finally.script2
-rwxr-xr-xyarn.tests/multi.script2
-rwxr-xr-xyarn.tests/no-act.script2
-rwxr-xr-xyarn.tests/selected-test.script2
-rwxr-xr-xyarn.tests/shell-lib.script2
-rwxr-xr-xyarn.tests/simple.script2
-rwxr-xr-xyarn.tests/snapshot.script2
-rwxr-xr-xyarn.tests/warn-if-empty.script2
10 files changed, 10 insertions, 10 deletions
diff --git a/yarn.tests/assuming-failure.script b/yarn.tests/assuming-failure.script
index f630294..9752e39 100755
--- a/yarn.tests/assuming-failure.script
+++ b/yarn.tests/assuming-failure.script
@@ -17,7 +17,7 @@ cat <<EOF > "$DATADIR/test.yarn"
touch "$DATADIR/cleanup-flag"
EOF
-./yarn -q "$DATADIR/test.yarn"
+./run-yarn "$DATADIR/test.yarn"
[ ! -e "$DATADIR/then-flag" ]
[ ! -e "$DATADIR/cleanup-flag" ]
diff --git a/yarn.tests/assuming.script b/yarn.tests/assuming.script
index 9471280..52eee36 100755
--- a/yarn.tests/assuming.script
+++ b/yarn.tests/assuming.script
@@ -17,7 +17,7 @@ cat <<EOF > "$DATADIR/test.yarn"
touch "$DATADIR/cleanup-flag"
EOF
-./yarn -q "$DATADIR/test.yarn"
+./run-yarn "$DATADIR/test.yarn"
[ -e "$DATADIR/then-flag" ]
[ -e "$DATADIR/cleanup-flag" ]
diff --git a/yarn.tests/finally.script b/yarn.tests/finally.script
index 2d383a0..4e05d2e 100755
--- a/yarn.tests/finally.script
+++ b/yarn.tests/finally.script
@@ -22,5 +22,5 @@ cat <<EOF > "$DATADIR/finally.yarn"
touch "$DATADIR/finally.has.run"
EOF
-./yarn -q "$DATADIR/finally.yarn"
+./run-yarn "$DATADIR/finally.yarn"
test -e "$DATADIR/finally.has.run"
diff --git a/yarn.tests/multi.script b/yarn.tests/multi.script
index 5e08cba..c8131da 100755
--- a/yarn.tests/multi.script
+++ b/yarn.tests/multi.script
@@ -19,5 +19,5 @@ cat <<EOF > "$DATADIR/2.yarn"
true
EOF
-./yarn -q "$DATADIR/1.yarn" "$DATADIR/2.yarn" |
+./run-yarn "$DATADIR/1.yarn" "$DATADIR/2.yarn" |
sed 's/, in .* seconds$//'
diff --git a/yarn.tests/no-act.script b/yarn.tests/no-act.script
index 983f115..cc924da 100755
--- a/yarn.tests/no-act.script
+++ b/yarn.tests/no-act.script
@@ -19,4 +19,4 @@ cat <<EOF > "$DATADIR/fail.yarn"
false
EOF
-./yarn -q -n "$DATADIR/fail.yarn"
+./run-yarn -n "$DATADIR/fail.yarn"
diff --git a/yarn.tests/selected-test.script b/yarn.tests/selected-test.script
index 69c1679..2c4521d 100755
--- a/yarn.tests/selected-test.script
+++ b/yarn.tests/selected-test.script
@@ -13,6 +13,6 @@ cat << EOF > "$DATADIR/test.yarn"
touch "$DATADIR/\$MATCH_1"
EOF
-./yarn -q "$DATADIR/test.yarn" --run 'foo test'
+./run-yarn "$DATADIR/test.yarn" --run 'foo test'
test -e "$DATADIR/foo"
! test -e "$DATADIR/bar"
diff --git a/yarn.tests/shell-lib.script b/yarn.tests/shell-lib.script
index fb820d4..68e4eb1 100755
--- a/yarn.tests/shell-lib.script
+++ b/yarn.tests/shell-lib.script
@@ -2,4 +2,4 @@
set -eu
-./yarn -q --shell-library shell-lib.sh shell-lib.yarn
+./run-yarn --shell-library shell-lib.sh shell-lib.yarn
diff --git a/yarn.tests/simple.script b/yarn.tests/simple.script
index 9cd3398..70d6103 100755
--- a/yarn.tests/simple.script
+++ b/yarn.tests/simple.script
@@ -2,4 +2,4 @@
set -eu
-./yarn -q simple.scenario
+./run-yarn simple.scenario
diff --git a/yarn.tests/snapshot.script b/yarn.tests/snapshot.script
index e8947ad..def73a8 100755
--- a/yarn.tests/snapshot.script
+++ b/yarn.tests/snapshot.script
@@ -23,7 +23,7 @@ cat << EOF > "$DATADIR/foo.yarn"
touch "\$DATADIR/\$MATCH_1.then"
EOF
-./yarn -q --snapshot --tempdir "$DATADIR/tmp" "$DATADIR/foo.yarn"
+./run-yarn --snapshot --tempdir "$DATADIR/tmp" "$DATADIR/foo.yarn"
test -e "$DATADIR/tmp/bar"
test -e "$DATADIR/tmp/bar/datadir"
diff --git a/yarn.tests/warn-if-empty.script b/yarn.tests/warn-if-empty.script
index 3594929..03be52d 100755
--- a/yarn.tests/warn-if-empty.script
+++ b/yarn.tests/warn-if-empty.script
@@ -6,5 +6,5 @@ touch "$DATADIR/empty.yarn"
# The grep below will fail unless the string exists, thereby failing the
# entire test.
-./yarn --log=/dev/stdout "$DATADIR/empty.yarn" 2>&1 |
+./run-yarn --no-quiet --log=/dev/stdout "$DATADIR/empty.yarn" 2>&1 |
grep 'No scenario code blocks' > /dev/null