diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-12-25 09:33:07 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-12-25 09:33:07 +0200 |
commit | cef26df0304ea2fa110d3dff69ac2e93e3c583f6 (patch) | |
tree | d5250f6a65bb56682bed477369e27081723a0810 /yarns | |
parent | 3005db0ecc34b100eb63894d588e1d78c29c362c (diff) | |
download | obnam-cef26df0304ea2fa110d3dff69ac2e93e3c583f6.tar.gz |
Change test for whether to run FUSE tests
Diffstat (limited to 'yarns')
-rw-r--r-- | yarns/0100-fuse.yarn | 4 | ||||
-rw-r--r-- | yarns/9000-implements.yarn | 13 |
2 files changed, 10 insertions, 7 deletions
diff --git a/yarns/0100-fuse.yarn b/yarns/0100-fuse.yarn index 7310846d..001e2f65 100644 --- a/yarns/0100-fuse.yarn +++ b/yarns/0100-fuse.yarn @@ -6,7 +6,7 @@ There's a lot of potential corner cases here, but for now, this test suite concentrates on verifying that at least the basics work. SCENARIO Browsing backups with FUSE plugin - ASSUMING user is in group fuse + ASSUMING user can use FUSE AND extended attributes are allowed for users GIVEN directory L with interesting filesystem objects AND a manifest of L in M @@ -37,7 +37,7 @@ only read the first 64 kilobytes of a file. Verify that this is no longer a problem. SCENARIO restoring a big file with FUSE - ASSUMING user is in group fuse + ASSUMING user can use FUSE GIVEN 1M of data in file L/big.dat AND a manifest of L in M WHEN user U backs up directory L to repository R diff --git a/yarns/9000-implements.yarn b/yarns/9000-implements.yarn index de26a8b3..eb3946db 100644 --- a/yarns/9000-implements.yarn +++ b/yarns/9000-implements.yarn @@ -606,11 +606,14 @@ Some tests won't work correctly when `root` is running them. IMPLEMENTS ASSUMING not running as root test "$(id -u)" != 0 -Some tests, such as those for the FUSE plugin, require the user to be -in a specific group. - - IMPLEMENTS ASSUMING user is in group (\S+) - groups | tr ' ' '\n' | grep -Fx "$MATCH_1" +For testing FUSE stuff, we need to check that the relevant stuff is +avaialble. Previously, we did this by checking that the user running +the test suite was in the group `fuse`, but that turns out to have +been a Debianism (removed in the Debian `jessie` release). A better +check is to check that the `fusermount` command is available. + + IMPLEMENTS ASSUMING user can use FUSE + command -v fusermount Check on whether user extended attributes work |