aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_bindfs.rb
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2015-11-15 22:34:05 +0000
committerMartin Pärtel <martin.partel@gmail.com>2015-11-15 22:34:05 +0000
commit6b56b050c0e4240389e52f47502acd43d50874c0 (patch)
treefb59ed36b71b2610494ab3c491e155fb5d38ea13 /tests/test_bindfs.rb
parent9565d19ba2469159ca0979fce967dc8852252108 (diff)
downloadbindfs-6b56b050c0e4240389e52f47502acd43d50874c0.tar.gz
Use `usermod user -G group -a` instead of `adduser user group` in a test.
This makes it compatible with at least Fedora.
Diffstat (limited to 'tests/test_bindfs.rb')
-rwxr-xr-xtests/test_bindfs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_bindfs.rb b/tests/test_bindfs.rb
index a8d3bc0..5da0c10 100755
--- a/tests/test_bindfs.rb
+++ b/tests/test_bindfs.rb
@@ -571,7 +571,7 @@ if Process.uid == 0
chown('nobody', nil, 'src/file')
assert { File.stat('mnt/file').uid == $nobody_uid }
- `adduser root bindfs_test_group`
+ `usermod root -G bindfs_test_group -a`
raise "Failed to add root to test group" if !$?.success?
# Cache not refreshed yet