aboutsummaryrefslogtreecommitdiffstats
path: root/tests/common.rb
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2011-07-22 10:20:56 +0300
committerMartin Pärtel <martin.partel@gmail.com>2011-07-22 10:32:22 +0300
commitef0f26d663e3fedfb2a18e0b7b0f73e418fdd7fd (patch)
tree8a08464dff7f08d9e8bb3b20ad23c92f95db50be /tests/common.rb
parent1479a6bb7184009b440a2e68b792941de1bd1f76 (diff)
downloadbindfs-ef0f26d663e3fedfb2a18e0b7b0f73e418fdd7fd.tar.gz
Tests: check that the mount appears in `mount`.
Diffstat (limited to 'tests/common.rb')
-rwxr-xr-xtests/common.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/common.rb b/tests/common.rb
index 65c26ca..fcdb0a7 100755
--- a/tests/common.rb
+++ b/tests/common.rb
@@ -85,7 +85,11 @@ def testenv(bindfs_args, &block)
sleep 0.5
end
- # TODO: check that mounting was successful
+ # Check that mount appeared in `mount`
+ if !`mount`.include? TESTDIR_NAME
+ $stderr.puts "Mount point did not appear in `mount`"
+ exit! 1
+ end
testcase_ok = true
begin