Skip to content

Commit bbb16f4

Browse files
committed
Forgot shell truncates before the pipe
1 parent a3874d5 commit bbb16f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

devops/scripts/benchmarking/benchmark.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ process_benchmarks() {
161161
exit_status="$?"
162162
if [ "$exit_status" -eq 0 ] && [ -s "$output_csv" ]; then
163163
# Filter out header lines not in csv format:
164-
tail +8 "$output_csv" > "$output_csv"
164+
tail +8 "$output_csv" > .tmp_res
165+
mv .tmp_res "$output_csv"
165166
check_and_cache $output_csv_relpath
166167
else
167168
echo "[ERROR] $testcase returned exit status $exit_status"

0 commit comments

Comments
 (0)