Skip to content

Commit 663217e

Browse files
committed
update test scenarios to use macro
1 parent 85853d5 commit 663217e

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

linux_os/guide/system/accounts/accounts-session/accounts_user_interactive_home_directory_on_separate_partition/tests/home_on_root_partition.fail.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
# platform = multi_platform_all
33
# remediation = none
44

5-
awk -F':' '{if ($3>={{{ uid_min }}} && $3!= {{{ nobody_uid }}}) print $1}' /etc/passwd \
6-
| xargs -I{} userdel -r {}
5+
{{{ bash_remove_interactive_users_from_passwd_by_uid() }}}
76

87
mkdir -p /root_home
98
useradd -m -d /root_home/testUser1 testUser1

linux_os/guide/system/accounts/accounts-session/accounts_user_interactive_home_directory_on_separate_partition/tests/home_on_separate_partition.pass.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
. $SHARED/partition.sh
55

6-
awk -F':' '{if ($3>={{{ uid_min }}} && $3!= {{{ nobody_uid }}}) print $1}' /etc/passwd \
7-
| xargs -I{} userdel -r {}
6+
{{{ bash_remove_interactive_users_from_passwd_by_uid() }}}
87

98
umount /srv || true
109

linux_os/guide/system/accounts/accounts-session/accounts_user_interactive_home_directory_on_separate_partition/tests/mixed_users_one_on_root.fail.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
. $SHARED/partition.sh
66

7-
awk -F':' '{if ($3>={{{ uid_min }}} && $3!= {{{ nobody_uid }}}) print $1}' /etc/passwd \
8-
| xargs -I{} userdel -r {}
7+
{{{ bash_remove_interactive_users_from_passwd_by_uid() }}}
98

109
umount /srv || true
1110

0 commit comments

Comments
 (0)