Skip to content

Commit 0a69782

Browse files
committed
Fix aug_save() test
1 parent bb3899c commit 0a69782

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/root/etc/passwd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
root:x:0:0:root:/root:/bin/bash
1+
root:x:0:0:root:/root:/bin/zsh
22
bin:x:1:1:bin:/bin:/sbin/nologin
33
daemon:x:2:2:daemon:/sbin:/sbin/nologin
44
adm:x:3:4:adm:/var/adm:/sbin/nologin

tests/test.auglua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ assert(aug_get("$raphink") == "314")
5959
--- assert(aug_get("$gid") == nil)
6060

6161
--- test aug_save()
62-
--- expect error here!
62+
--- reload tree to be clean
63+
aug_load()
64+
aug_set("etc/passwd/root/shell", "/bin/zsh")
6365
aug_save()
6466

6567
--- test aug_load()

0 commit comments

Comments
 (0)