aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2015-01-25 20:47:37 +0100
committerTharre <tharre3@gmail.com>2015-01-25 20:47:37 +0100
commit4a25bf1120e60c8a5d1746671972cf08faaaf620 (patch)
tree1af8c34baade9693b6a70a862b81a380eaf3e4b6
parent5322817d1c382d5ba377be0080bd4c5da525cd2f (diff)
downloadredo-4a25bf1120e60c8a5d1746671972cf08faaaf620.tar.gz
redo-4a25bf1120e60c8a5d1746671972cf08faaaf620.tar.xz
redo-4a25bf1120e60c8a5d1746671972cf08faaaf620.zip
Add sync to some test cases to make travis-ci work
-rw-r--r--test/always.bats1
-rw-r--r--test/fail.bats1
-rw-r--r--test/no-output.bats1
3 files changed, 3 insertions, 0 deletions
diff --git a/test/always.bats b/test/always.bats
index a4ab1a2..6698a2d 100644
--- a/test/always.bats
+++ b/test/always.bats
@@ -4,5 +4,6 @@ load test_helper
@test "check if do-files marked with always really do execute always" {
run redo always
+ sync
[ $status -eq 0 ] && [ -e always_result ]
}
diff --git a/test/fail.bats b/test/fail.bats
index 1a77ced..7ccbd07 100644
--- a/test/fail.bats
+++ b/test/fail.bats
@@ -9,5 +9,6 @@ load test_helper
@test "invoke with failing do-file" {
run redo fail
+ sync
[ $status -ne 0 ] && [ ! -e fail_result ]
}
diff --git a/test/no-output.bats b/test/no-output.bats
index c492e4f..fee155d 100644
--- a/test/no-output.bats
+++ b/test/no-output.bats
@@ -4,5 +4,6 @@ load test_helper
@test "produce empty result" {
run redo no-output_result
+ sync
[ $status -eq 0 ] && [ ! -e no-output_result ]
}