Skip to content

Commit 123590a

Browse files
[Test] Simplify command in StarCCM test
Signed-off-by: Hanwen <[email protected]>
1 parent 6e6be9d commit 123590a

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

+1-1
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=$(python -c "print(${end_time} - ${start_time})")
7+
elapsed_time=$(echo "$end_time - $start_time" | bc -l)
88
echo $elapsed_time

0 commit comments

Comments
 (0)