We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32a70ec commit 0289abdCopy full SHA for 0289abd
scripts/dashboard/format_results.sh
@@ -5,7 +5,7 @@
5
set -euo pipefail
6
7
# Check if required arguments are provided
8
-if [ $# -lt 3 ]; then
+if [ "$#" -ne 3 ]; then
9
echo "Usage: $0 <job_result> <test_type> <workspace>"
10
exit 1
11
fi
@@ -21,12 +21,12 @@ OUTPUT_DIR="$WORKSPACE/test/dashboard/logs/$TEST_TYPE"
21
22
# Validate input file exists
23
if [ ! -f "$INPUT_FILE" ]; then
24
- echo "Error: Input file $INPUT_FILE does not exist."
+ echo "Error: Input file not found: $INPUT_FILE"
25
26
27
28
format_log() {
29
- local line="$1"
+ line="$1"
30
json="{"
31
32
while [[ "$line" =~ ([a-zA-Z0-9_]+)=((\"([^\"\\]|\\.)*\")|[^[:space:]]+) ]]; do
0 commit comments