Skip to content

Commit

Permalink
Refactor for current bash standards (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Montana committed Jul 13, 2023
1 parent e3d941d commit e25faae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reloadAndTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ plotDir=${sampledir}_plotted
mkdir -p ${plotDir}

# Reload the cluster
./reload.sh > ${logdir}/${timestamp}_reload_log.txt 2>&1
./reload.sh >${logdir}/${timestamp}_reload_log.txt 2>&1

signalfile=${logdir}/tests.complete

# Initiate the scenarios as a background process.
./runTestScenarios.sh ${signalfile} > ${logdir}/${timestamp}_testsuite_log.txt 2>&1 &
./runTestScenarios.sh ${signalfile} >${logdir}/${timestamp}_testsuite_log.txt 2>&1 &

# Start sampling the metrics
pollingScript="pollRawResourceMetrics.sh"
path=$(realpath ${pollingScript})
now=$(date -u '+%Y%m%dT%H%M%SZ')
echo "[$now] Run 'sudo fuser ${path} -k' to stop metrics gathering at any point, or if signal file ${signalfile} does not get generated."
./${pollingScript} ${sampledir} 5 ${signalfile} > ${logdir}/${timestamp}_testsuite_raw_metrics_capture.txt 2>&1
./${pollingScript} ${sampledir} 5 ${signalfile} >${logdir}/${timestamp}_testsuite_raw_metrics_capture.txt 2>&1

# Note: polling needs manual termination once the scenarios are complete.
datafile=${formattedSampleDir}/${timestamp}_samples_formatted.csv
Expand Down

0 comments on commit e25faae

Please sign in to comment.