Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
No build reason found for pool:i586
openSUSE:Step:15
sblim-testsuite
sblim-testsuite-1.3.0-fix-bashisms.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sblim-testsuite-1.3.0-fix-bashisms.patch of Package sblim-testsuite
diff -Ndur sblim-testsuite-1.3.0/run.sh sblim-testsuite-1.3.0-fix-bashisms/run.sh --- sblim-testsuite-1.3.0/run.sh 2009-06-19 03:27:08.000000000 +0300 +++ sblim-testsuite-1.3.0-fix-bashisms/run.sh 2014-11-16 01:37:15.038203402 +0200 @@ -31,7 +31,7 @@ # First run the createFiles script, if it exists cd $SYSTEM_PATH; -if [[ -a ./createKeyFiles.sh ]]; then +if [ -e ./createKeyFiles.sh ]; then ./createKeyFiles.sh fi cd -; @@ -54,8 +54,8 @@ shift # specify the user - if [[ -n "$COMMAND" && "$COMMAND" == "-u" ]]; then - if [[ -n "$1" ]]; then + if [ -n "$COMMAND" -a "$COMMAND" = "-u" ]; then + if [ -n "$1" ]; then USERID=$1; else echo "run.sh : Please specify a UserID after -u"; @@ -63,26 +63,26 @@ fi # specify the user's password - elif [[ -n "$COMMAND" && "$COMMAND" == "-p" ]]; then - if [[ -z "$1" ]]; then + elif [ -n "$COMMAND" -a "$COMMAND" = "-p" ]; then + if [ -z "$1" ]; then echo "run.sh : Please specify a password for UserID $USERID after -p"; exit 1; else PASSWORD=$1; fi # specify the hostname - elif [[ -n "$COMMAND" && "$COMMAND" == "-host" ]]; then + elif [ -n "$COMMAND" -a "$COMMAND" = "-host" ]; then HOSTNAME=$1; # specify the port - elif [[ -n "$COMMAND" && "$COMMAND" == "-port" ]]; then + elif [ -n "$COMMAND" -a "$COMMAND" = "-port" ]; then PORT=$1; # specify the namespace - elif [[ -n "$COMMAND" && "$COMMAND" == "-n" ]]; then + elif [ -n "$COMMAND" -a "$COMMAND" = "-n" ]; then NAMESPACE=$1; - elif [[ -n "$COMMAND" && "$COMMAND" == "-verbose" ]]; then + elif [ -n "$COMMAND" -a "$COMMAND" = "-verbose" ]; then VERBOSE="yes"; fi @@ -103,26 +103,26 @@ export PORT=5988 fi -if [[ -n $USERID && -z $PASSWORD ]]; then +if [ -n $USERID -a -z $PASSWORD ]; then echo "run.sh : Please specify a password for UserID $USERID : option -p"; exit 1; -elif [[ -n $USERID && -n $PASSWORD ]]; then +elif [ -n $USERID -a -n $PASSWORD ]; then export SBLIM_TESTSUITE_ACCESS="$USERID:$PASSWORD@"; fi -if [[ -n $HOSTNAME ]]; then +if [ -n $HOSTNAME ]; then export SBLIM_TESTSUITE_HOSTNAME="$HOSTNAME"; fi -if [[ -n "$PORT" ]]; then +if [ -n "$PORT" ]; then export SBLIM_TESTSUITE_PORT="$PORT"; fi -if [[ -n $NAMESPACE ]]; then +if [ -n $NAMESPACE ]; then export SBLIM_TESTSUITE_NAMESPACE="$NAMESPACE"; fi -if [[ -n $VERBOSE ]]; then +if [ -n $VERBOSE ]; then export SBLIM_TESTSUITE_VERBOSE=1; fi @@ -136,12 +136,12 @@ RC= WBEMCLI_ENV=`env | grep WBEMCLI_IND | sed -e s/WBEMCLI_IND=//`; -if [[ -n $WBEMCLI_ENV ]]; then +if [ -n $WBEMCLI_ENV ]; then WBEMCLI_ALIAS=`head -1 $WBEMCLI_ENV | sed -e s/.*:' '//` echo "check if CIMOM is running - wbemgc $WBEMCLI_ALIAS$NAMESPACE:cim_managedelement"; RC=`wbemgc $WBEMCLI_ALIAS$NAMESPACE:cim_managedelement 2>&1`; else - if [[ -n $SBLIM_TESTSUITE_ACCESS ]]; then + if [ -n $SBLIM_TESTSUITE_ACCESS ]; then echo "check if CIMOM is running - wbemgc $PROTOCOL://"$SBLIM_TESTSUITE_ACCESS$HOSTNAME":"$PORT$NAMESPACE":cim_managedelement"; RC=`wbemgc $PROTOCOL://"$SBLIM_TESTSUITE_ACCESS$HOSTNAME":"$PORT$NAMESPACE":cim_managedelement 2>&1`; else @@ -150,7 +150,7 @@ fi fi -if [[ -n $RC ]]; then +if [ -n $RC ]; then echo $RC | grep 'Exception' >/dev/null \ && echo 'CIMOM NOT RUNNING ?' && exit 1; echo "OK";
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor