Skip to content

Commit 8a101d8

Browse files
committed
test json fix
1 parent ea3af5e commit 8a101d8

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']='times-thresholds' OPT_DESC['t']='sleepgraph thresholds'
54+
OPT_NAME['t']='resume-threshold' OPT_DESC['t']='sleepgraph threshold for resume time'
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="${OPT_VAL['t']}"
192+
thresholds=$( jq -n "${OPT_VAL['t']}")
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)