| |
@@ -6,8 +6,11 @@
|
| |
logfile={{ remote_artifacts }}/test.$(echo $TEST | sed -e 's/\//-/g').log
|
| |
exec 2>>$logfile 1>>$logfile
|
| |
cd $TEST_DIR
|
| |
- #make script executable
|
| |
- chmod 0775 $(echo $TEST_CMD | awk '{print $1;}')
|
| |
+ #if command is a file make it executable
|
| |
+ cmd="$(echo $TEST_CMD | awk '{print $1;}')"
|
| |
+ if [ -f "$cmd" ]; then
|
| |
+ chmod 0775 "$cmd"
|
| |
+ fi
|
| |
#execute the test
|
| |
eval $TEST_CMD
|
| |
if [ $? -eq 0 ]; then
|
| |
For example, do not try to give exec permission if command that will run is on
$PATH