]> git.notmuchmail.org Git - notmuch/blobdiff - test/T380-atomicity.sh
test: use $(dirname "$0") for sourcing test-lib.sh
[notmuch] / test / T380-atomicity.sh
index c6a9fb980bf0d4678a444939f5bb97ddd957747a..17a3e478aecad546e6a8ffee0949ef14c7db5a2e 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 test_description='atomicity'
-. ./test-lib.sh || exit 1
+. $(dirname "$0")/test-lib.sh || exit 1
 
 # This script tests the effects of killing and restarting "notmuch
 # new" at arbitrary points.  If notmuch new is properly atomic, the
@@ -95,6 +95,7 @@ fi
 test_begin_subtest '"notmuch new" is idempotent under arbitrary aborts'
 test_expect_equal_file searchall expectall
 
-test_expect_success "detected $outcount>10 abort points" "test $outcount -gt 10"
+test_begin_subtest "detected $outcount>10 abort points"
+test_expect_success "test $outcount -gt 10"
 
 test_done