Skip to content

Commit

Permalink
Fix suspend time integrated gpu (BugFix) (#1597)
Browse files Browse the repository at this point in the history
* Use the correct log for the attachment with integrated graphics card

* Fixed also for suspend log

* replaced jinja templates for if/else statement
  • Loading branch information
fernando79513 authored Nov 13, 2024
1 parent 542c748 commit 5879bbb
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions providers/base/units/suspend/suspend-graphics.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,14 @@ depends:
{%- else %}
suspend/suspend_advanced_auto
{%- endif %}
command: [ -e "$PLAINBOX_SESSION_SHARE"/{{ index }}_suspend_single.log ] && cat "$PLAINBOX_SESSION_SHARE"/{{ index }}_suspend_single.log
command:
if [ -e "$PLAINBOX_SESSION_SHARE/{{ index }}_suspend_single.log" ]; then
cat "$PLAINBOX_SESSION_SHARE/{{ index }}_suspend_single.log"
elif [ -e "$PLAINBOX_SESSION_SHARE/suspend_single.log" ]; then
cat "$PLAINBOX_SESSION_SHARE/suspend_single.log"
else
echo "No suspend log files found"
fi
_purpose:
Attaches the log from the single suspend/resume test to the results
_summary: Attach log from a single suspend/resume test.
Expand All @@ -266,7 +273,15 @@ depends:
suspend/suspend_advanced_auto
{%- endif %}
estimated_duration: 1.2
command: [ -e "$PLAINBOX_SESSION_SHARE"/{{ index }}_suspend_single_times.log ] && sleep_time_check.py "$PLAINBOX_SESSION_SHARE"/{{ index }}_suspend_single_times.log
command:
if [ -e "$PLAINBOX_SESSION_SHARE"/{{ index }}_suspend_single_times.log ]; then
sleep_time_check.py "$PLAINBOX_SESSION_SHARE"/{{ index }}_suspend_single_times.log
elif [ -e "$PLAINBOX_SESSION_SHARE"/suspend_single_times.log ]; then
sleep_time_check.py "$PLAINBOX_SESSION_SHARE"/suspend_single_times.log
else
echo "No suspend log files found"
exit 1
fi
_purpose: Checks the sleep times to ensure that a machine suspends and resumes within a given threshold
_summary: Verify if the machine meets the suspend and resume time thresholds.

Expand Down

0 comments on commit 5879bbb

Please sign in to comment.