From: Subrata <sub...@us...> - 2009-10-26 15:08:09
|
Update of /cvsroot/ltp/ltp/testcases/commands/su In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15395/ltp/testcases/commands/su Modified Files: su01 Log Message: Some fixes of shell scripts of tests: this patch fixes some minor bugs in the code of LTP shell scripts: - quote arguments of test(1) in some places concerning redhat detection, - don't execute the result of type(1), it makes no sense - even more when the output of it should be redirected, Signed-off-by: Jiri Palecek <jpa...@we...>. Index: su01 =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/commands/su/su01,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** su01 8 Jul 2009 17:53:47 -0000 1.5 --- su01 26 Oct 2009 15:07:57 -0000 1.6 *************** *** 44,48 **** printf "Machine type is: $tvar\n\n" ! if [ $tvar = "redhat" -o $tvar = "redhat-linux" ] # Need to also set group for TEST_USER2 then --- 44,48 ---- printf "Machine type is: $tvar\n\n" ! if [ "$tvar" = "redhat" -o "$tvar" = "redhat-linux" ] # Need to also set group for TEST_USER2 then *************** *** 100,104 **** #create users home directory (SLES 8 does not do this, even when specified in adduser) # Only do this if not RH; RH creates the directory. ! if [ $tvar != "redhat" -a $tvar != "redhat-linux" ] then { USER_UID=`id -u $TEST_USER1` --- 100,104 ---- #create users home directory (SLES 8 does not do this, even when specified in adduser) # Only do this if not RH; RH creates the directory. ! if [ "$tvar" != "redhat" -a "$tvar" != "redhat-linux" ] then { USER_UID=`id -u $TEST_USER1` *************** *** 136,140 **** #create users home diretory (SLES 8 does not do this, even when specified in adduser) # Only do this if not RH; RH creates the directory. ! if [ $tvar != "redhat" -a $tvar != "redhat-linux" ] then { USER_UID=`id -u $TEST_USER2` --- 136,140 ---- #create users home diretory (SLES 8 does not do this, even when specified in adduser) # Only do this if not RH; RH creates the directory. ! if [ "$tvar" != "redhat" -a "$tvar" != "redhat-linux" ] then { USER_UID=`id -u $TEST_USER2` |