diff --git a/tests/expiry/01_expiry_-c_no_expiry/expiry.exp b/tests/expiry/01_expiry_-c_no_expiry/expiry.exp index 42fece58..a24b624d 100755 --- a/tests/expiry/01_expiry_-c_no_expiry/expiry.exp +++ b/tests/expiry/01_expiry_-c_no_expiry/expiry.exp @@ -4,6 +4,7 @@ set timeout 2 expect_after default {puts "\nFAIL"; exit 1} spawn /bin/sh +send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" expect "# " send "expiry -c\r" diff --git a/tests/expiry/02_expiry_-c_expired/expiry.exp b/tests/expiry/02_expiry_-c_expired/expiry.exp index 2a52187d..a2dd1ba6 100755 --- a/tests/expiry/02_expiry_-c_expired/expiry.exp +++ b/tests/expiry/02_expiry_-c_expired/expiry.exp @@ -4,6 +4,7 @@ set timeout 2 expect_after default {puts "\nFAIL"; exit 1} spawn /bin/sh +send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" expect "# " send "expiry -c\r" diff --git a/tests/expiry/03_expiry_-f_expired/expiry.exp b/tests/expiry/03_expiry_-f_expired/expiry.exp index 9802c3ba..5f1b9606 100755 --- a/tests/expiry/03_expiry_-f_expired/expiry.exp +++ b/tests/expiry/03_expiry_-f_expired/expiry.exp @@ -4,6 +4,7 @@ set timeout 2 expect_after default {puts "\nFAIL"; exit 1} spawn /bin/sh +send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" expect "# " send "expiry -f\r" diff --git a/tests/expiry/04_expiry_no_options/expiry.exp b/tests/expiry/04_expiry_no_options/expiry.exp index bca815cc..19ddb477 100755 --- a/tests/expiry/04_expiry_no_options/expiry.exp +++ b/tests/expiry/04_expiry_no_options/expiry.exp @@ -4,6 +4,7 @@ set timeout 2 expect_after default {puts "\nFAIL"; exit 1} spawn /bin/sh +send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" expect "# " send "expiry\r" diff --git a/tests/expiry/05_expiry_-c_no_shadow_file/expiry.exp b/tests/expiry/05_expiry_-c_no_shadow_file/expiry.exp index 42fece58..a24b624d 100755 --- a/tests/expiry/05_expiry_-c_no_shadow_file/expiry.exp +++ b/tests/expiry/05_expiry_-c_no_shadow_file/expiry.exp @@ -4,6 +4,7 @@ set timeout 2 expect_after default {puts "\nFAIL"; exit 1} spawn /bin/sh +send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" expect "# " send "expiry -c\r" diff --git a/tests/expiry/06_expiry_-c_no_shadow_entry/expiry.exp b/tests/expiry/06_expiry_-c_no_shadow_entry/expiry.exp index 42fece58..a24b624d 100755 --- a/tests/expiry/06_expiry_-c_no_shadow_entry/expiry.exp +++ b/tests/expiry/06_expiry_-c_no_shadow_entry/expiry.exp @@ -4,6 +4,7 @@ set timeout 2 expect_after default {puts "\nFAIL"; exit 1} spawn /bin/sh +send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" expect "# " send "expiry -c\r" diff --git a/tests/expiry/07_expiry_-c_expired_account/expiry.exp b/tests/expiry/07_expiry_-c_expired_account/expiry.exp index 1d13ade2..1f69e798 100755 --- a/tests/expiry/07_expiry_-c_expired_account/expiry.exp +++ b/tests/expiry/07_expiry_-c_expired_account/expiry.exp @@ -4,6 +4,7 @@ set timeout 2 expect_after default {puts "\nFAIL"; exit 1} spawn /bin/sh +send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" expect "# " send "expiry -c\r" diff --git a/tests/expiry/08_expiry_-c_expired_max+inact/expiry.exp b/tests/expiry/08_expiry_-c_expired_max+inact/expiry.exp index ad14af87..9ad091fd 100755 --- a/tests/expiry/08_expiry_-c_expired_max+inact/expiry.exp +++ b/tests/expiry/08_expiry_-c_expired_max+inact/expiry.exp @@ -4,6 +4,7 @@ set timeout 2 expect_after default {puts "\nFAIL"; exit 1} spawn /bin/sh +send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" expect "# " send "expiry -c\r" diff --git a/tests/expiry/09_expiry_-c_expired_not_inactive/expiry.exp b/tests/expiry/09_expiry_-c_expired_not_inactive/expiry.exp index 42fece58..a24b624d 100755 --- a/tests/expiry/09_expiry_-c_expired_not_inactive/expiry.exp +++ b/tests/expiry/09_expiry_-c_expired_not_inactive/expiry.exp @@ -4,6 +4,7 @@ set timeout 2 expect_after default {puts "\nFAIL"; exit 1} spawn /bin/sh +send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" expect "# " send "expiry -c\r"