Skip to content

Commit 6067b5d

Browse files
enhanced assert.sh
1 parent 63962f4 commit 6067b5d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/assert.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,20 @@ if [ ! -z "$MODULE_PATH" ]; then
121121
assert_failed "module was removed."
122122
fi
123123
export ALLOW_REMOVE=0 # not allow remove these files
124-
export ALLOW_SAME=1
124+
export ALLOW_SAME=0 # not allow same files
125125
# assert not exists the script that depends on boot up
126126
assert_not_exists_file "post-fs-data.sh"
127127
assert_not_exists_file "post-mount.sh"
128128
assert_not_exists_file "boot-completed.sh"
129129
assert_not_exists_file "late-load.sh"
130-
assert_not_exists_file "sepolicy.rule"
131-
assert_not_exists_file "system.prop"
132130
# assert not a meta-module
133131
assert_not_exists_file "metamount.sh"
134132
assert_not_exists_file "metainstall.sh"
135133
assert_not_exists_file "metauninstall.sh"
134+
135+
export ALLOW_SAME=1 # allow same files
136+
assert_not_exists_file "sepolicy.rule"
137+
assert_not_exists_file "system.prop"
136138
# assert cannot hot-install zygisk module
137139
assert_not_exists_dir "zygisk/"
138140

0 commit comments

Comments
 (0)