Skip to content

Commit

Permalink
Merge pull request ClusterLabs#317 from dmuhamedagic/ocf-tester-no-bash
Browse files Browse the repository at this point in the history
bash is not necessary to invoke resource agents
  • Loading branch information
dmuhamedagic committed Oct 2, 2013
2 parents 924bbc5 + 428fc8e commit f6829fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/ocf-tester.in
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ test_metadata() {
action=meta-data
msg=${1:-"Testing: $action"}
debug $msg
bash $agent $action | (cd $DATADIR/resource-agents && $METADATA_LINT)
$agent $action | (cd $DATADIR/resource-agents && $METADATA_LINT)
rc=$?
#echo rc: $rc
return $rc
Expand All @@ -237,12 +237,12 @@ test_command() {
lrm_test_command $action "$msg"
return $?
fi
#echo Running: "export $ra_args; bash $agent $action 2>&1 > /dev/null"
#echo Running: "export $ra_args; $agent $action 2>&1 > /dev/null"
if [ $verbose -eq 0 ]; then
command_output=`bash $agent $action 2>&1`
command_output=`$agent $action 2>&1`
else
debug $msg
bash $agent $action
$agent $action
fi
rc=$?
#echo rc: $rc
Expand Down

0 comments on commit f6829fd

Please sign in to comment.