From 6b56b050c0e4240389e52f47502acd43d50874c0 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Sun, 15 Nov 2015 22:34:05 +0000 Subject: Use `usermod user -G group -a` instead of `adduser user group` in a test. This makes it compatible with at least Fedora. --- tests/test_bindfs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3