tests: print default timeout message to stderr

Signed-off-by: Serge Hallyn <serge@hallyn.com>
This commit is contained in:
Serge Hallyn 2023-02-07 21:12:59 -06:00
parent 6a51e6893e
commit 8728bd87ed
186 changed files with 222 additions and 222 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 10 set timeout 10
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/bash spawn /bin/bash
expect "# " expect "# "

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
spawn /bin/sh spawn /bin/sh
send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r" send "if \[ \$(id -u) -eq 0 \]; then PS1='# '; else PS1='$ '; fi\r"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 4} { if {$argc != 4} {
puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>" puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 4} { if {$argc != 4} {
puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>" puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 4} { if {$argc != 4} {
puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>" puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 4} { if {$argc != 4} {
puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>" puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 4} { if {$argc != 4} {
puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>" puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 4} { if {$argc != 4} {
puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>" puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 3} { if {$argc != 3} {
puts "usage: gpasswd.exp <run_user> <group> <user_prompt>" puts "usage: gpasswd.exp <run_user> <group> <user_prompt>"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 3} { if {$argc != 3} {
puts "usage: gpasswd.exp <run_user> <group> <user_prompt>" puts "usage: gpasswd.exp <run_user> <group> <user_prompt>"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 4} { if {$argc != 4} {
puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>" puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 4} { if {$argc != 4} {
puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>" puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 4} { if {$argc != 4} {
puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>" puts "usage: gpasswd.exp <run_user> <group> <g_password> <user_prompt>"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

View File

@ -1,7 +1,7 @@
#!/usr/bin/expect #!/usr/bin/expect
set timeout 2 set timeout 2
expect_after default {puts "\nFAIL"; exit 1} expect_after default {puts stderr "\nFAIL"; exit 1}
if {$argc != 0} { if {$argc != 0} {
puts "usage: run_groupmems.exp" puts "usage: run_groupmems.exp"

Some files were not shown because too many files have changed in this diff Show More