Skip to content

Commit c6dc60f

Browse files
[integ-test] Improve StarCCM test to handle numbers in scientific notation
`bc -l` doesn't handle scientific notation like 5.1759e+02
1 parent f579ec0 commit c6dc60f

File tree

1 file changed

+1
-1
lines changed
  • tests/integration-tests/tests/performance_tests/test_starccm/test_starccm

1 file changed

+1
-1
lines changed

tests/integration-tests/tests/performance_tests/test_starccm/test_starccm/starccm.results.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ JOBID="$1"
44
OUTPUT=$(scontrol show jobs ${JOBID} | grep StdOut | cut -d '=' -f 2)
55
start_time=$(tail -n 250 ${OUTPUT} | grep " 501 " | awk '{print $NF}')
66
end_time=$(tail -n 250 ${OUTPUT} | grep " 600 " | awk '{print $NF}')
7-
elapsed_time=$(echo "$end_time - $start_time" | bc -l)
7+
elapsed_time=$(awk "BEGIN {print $end_time - $start_time}")
88
echo $elapsed_time

0 commit comments

Comments
 (0)