Skip to content

Commit 2e69798

Browse files
committed
test json fix
1 parent ea3af5e commit 2e69798

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

test-case/check-suspend-resume.sh

Lines changed: 5 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']='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,10 @@ 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+
193+
thresholds=$( jq -n \
194+
--arg resume_time "${OPT_VAL['t']}" \
195+
'{sof-audio-pci-intel-ptl:{resume_early:0.001, resume:$resume_time}}')
193196

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

0 commit comments

Comments
 (0)