Hi, I ran "su01" test. This test failed: ------------<log> userdel: user su_usr1 does not exist Creating mailbox file: File exists userdel: user su_usr2 does not exist Creating mailbox file: File exists YOU NEED TO SET ENVIROMENT VARIABLE PASSWD. ------------
This failure was caused by "PASSWD" environment variable not being set:
------------<su01_s1>
#Grab input from enviroment
if [info exists env(PASSWD)] {
set PASSWD $env(PASSWD)
} else {
send_user "YOU NEED TO SET ENVIROMENT VARIABLE PASSWD. \n"
exit 1
}
------------
According to "su01_s1", this "PASSWD" is the password of "root" user:
------------<su01_s1>
spawn /bin/su -c whoami
set i_am_root 0
expect {
"Password:" {
send "$PASSWD\r"
expect {
"root" { set i_am_root 1
set i_can_root 1
}
}
}
}
------------
I think whether this test program is unfinished.
Probably the author of this program thought that there was a problem
to set a password in the shell, I think.
Because, the password of root is various by each users who run the test,
and it cannot be gotten from environment variable or file etc.
So, I suggest that "su01" shell demands root password when it is run.
But, when user forgot to input, it should return and finish with error.
I attach the patch for "su01" file.
Signed-off-by: Tomonori Mitani <[email protected]>
Regards--
-Tomonori Mitani
su01.patch
Description: Binary data
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
