]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
Several tests assume nobody:nobody, but docker omits them 518/head
authorMartin Vidner <mvidner@suse.cz>
Thu, 9 Jan 2020 14:54:42 +0000 (15:54 +0100)
committerMartin Vidner <mvidner@suse.cz>
Thu, 9 Jan 2020 15:22:40 +0000 (16:22 +0100)
testsuite-real/setup-and-run-all

index 1e0485ae4c2aa07a971edcab7982c873756ee039..b92715acf27903f08e2d09b698d58626a09737b3 100755 (executable)
@@ -40,6 +40,14 @@ setup() {
     mount "$IMG" "$MNT"
     forget_config
     snapper --no-dbus --config="$CFG" create-config "$MNT"
+
+    # several tests assume nobody:nobody, but docker omits them
+    if ! getent group nobody; then
+        groupadd nobody
+    fi
+    if ! id -u nobody; then
+        useradd --no-log-init --group nobody nobody
+    fi
 }
 
 main() {