]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-46-HOMED: Ignore "Disk Usage" field as well
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 9 May 2024 07:40:16 +0000 (09:40 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 9 May 2024 09:02:45 +0000 (11:02 +0200)
This can change between the call to homectl inspect and userdbctl
user so let's ignore it along with the other disk fields.

Fixes #32727

test/units/testsuite-46.sh

index 61f17d4e46bb127388326ddf7ae4bb1420305d63..5dc00f48625017d2f5c527cd174f24d4979de4ad 100755 (executable)
@@ -20,7 +20,7 @@ inspect() {
     userdbctl user "$USERNAME" | tee /tmp/b
 
     # diff uses the grep BREs for pattern matching
-    diff -I '^\s*Disk \(Size\|Free\|Floor\|Ceiling\):' /tmp/{a,b}
+    diff -I '^\s*Disk \(Size\|Free\|Floor\|Ceiling\|Usage\):' /tmp/{a,b}
     rm /tmp/{a,b}
 
     homectl inspect --json=pretty "$USERNAME"