Skip to content

Commit e3d941d

Browse files
authored
refactored for present day formatting (#31)
1 parent c890dd9 commit e3d941d

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

Diff for: runTestScenarios.sh

+11-12
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ set -e
44
signalfile=$1
55

66
function orchestratorLog() {
7-
now=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
8-
echo -e "[$now | Orchestrator | INFO] $1"
7+
now=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
8+
echo -e "[$now | Orchestrator | INFO] $1"
99
}
1010

1111
function waitForSeconds() {
12-
wait=$1
13-
orchestratorLog "Waiting ${wait} seconds"
14-
sleep $wait
12+
wait=$1
13+
orchestratorLog "Waiting ${wait} seconds"
14+
sleep $wait
1515
}
1616

1717
orchestratorLog "Orchestrator Started"
@@ -28,12 +28,12 @@ pushd scenarios
2828
waitForSeconds 60
2929

3030
pushd industrial/gpsExample
31-
./gpsExample.sh
31+
./gpsExample.sh
3232
popd
3333
waitForSeconds 60
3434

3535
pushd industrial/salesSystem
36-
./salesSystem.sh
36+
./salesSystem.sh
3737
popd
3838
waitForSeconds 60
3939

@@ -64,12 +64,11 @@ orchestratorLog "Scenario execution complete."
6464
#orchestratorLog "Retrieving all blocks from the blockchain."
6565
#./getAllBlocks.sh
6666

67-
if [ -z "${signalfile}" ];
68-
then
69-
orchestratorLog "No signal file defined."
67+
if [ -z "${signalfile}" ]; then
68+
orchestratorLog "No signal file defined."
7069
else
71-
orchestratorLog "Touching signal file ${signalfile}"
72-
touch ${signalfile}
70+
orchestratorLog "Touching signal file ${signalfile}"
71+
touch ${signalfile}
7372
fi
7473

7574
orchestratorLog "Done."

0 commit comments

Comments
 (0)