Skip to content

Commit 6dd0d6e

Browse files
committed
test json fix 3
1 parent 9b1897a commit 6dd0d6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-case/check-suspend-resume.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ OPT_HAS_ARG['p']=1 OPT_VAL['p']=''
5151
OPT_NAME['s']='run-sleepgraph' OPT_DESC['s']='run with sleepgraph (http://github.com/intel/pm-graph.git)'
5252
OPT_HAS_ARG['s']=0 OPT_VAL['s']=0
5353

54-
OPT_NAME['t']='resume-threshold' OPT_DESC['t']='sleepgraph threshold for resume time'
54+
OPT_NAME['t']='sleepgraph-thresholds' OPT_DESC['t']='sleepgraph thresholds'
5555
OPT_HAS_ARG['t']=1 OPT_VAL['t']=''
5656

5757
func_opt_parse_option "$@"
@@ -189,7 +189,7 @@ analyze_sleepgraph_results()
189189
dlogi "Analyzing sleepgraph results"
190190
results_file=$(find suspend-*/*.html)
191191
cp "$results_file" "$LOG_ROOT/"
192-
thresholds=$(jq -n --argjson t "${OPT_VAL['t']}" '$t')
192+
thresholds=$(echo "${OPT_VAL['t']}" | jq '.')
193193

194194
dlogi "Analyzing $results_file file..."
195195
if python3 "$SCRIPT_HOME"/tools/analyze-sleepgraph-results.py "$results_file" "$thresholds"; then

0 commit comments

Comments
 (0)