Skip to content

Commit

Permalink
Fix the audio_after_suspend test failing on mantic - test case (Bug…
Browse files Browse the repository at this point in the history
…Fix) (#1159)

Modify the test case to use new script from #1142
  • Loading branch information
hanhsuan authored Apr 11, 2024
1 parent 961183e commit 91a4ce8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions providers/base/units/suspend/suspend.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ requires:
_summary: Record mixer settings before suspending.
command:
if check_audio_daemon.sh ; then
wpctl status | sed 's/pid:.*/]/g' > "$PLAINBOX_SESSION_SHARE"/audio_settings_before_suspend
wpctl status > "$PLAINBOX_SESSION_SHARE"/audio_settings_before_suspend
else
audio_settings.py store --file="$PLAINBOX_SESSION_SHARE"/audio_settings_before_suspend
fi
Expand Down Expand Up @@ -454,11 +454,12 @@ depends: suspend/suspend_advanced_auto suspend/audio_before_suspend
_description: Verify that mixer settings after suspend are the same as before suspend.
command:
if check_audio_daemon.sh ; then
wpctl status | sed 's/pid:.*/]/g' > "$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend
wpctl status > "$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend
pipewire_utils.py compare_wpctl_status -s1 "$PLAINBOX_SESSION_SHARE"/audio_settings_before_suspend -s2 "$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend
else
audio_settings.py store --file="$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend
diff "$PLAINBOX_SESSION_SHARE"/audio_settings_before_suspend "$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend
fi
diff "$PLAINBOX_SESSION_SHARE"/audio_settings_before_suspend "$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend

plugin: shell
category_id: com.canonical.plainbox::suspend
Expand All @@ -472,11 +473,12 @@ depends: suspend/suspend_advanced_auto suspend/audio_before_suspend
_description: Verify that mixer settings after suspend are the same as before suspend.
command:
if check_audio_daemon.sh ; then
wpctl status | sed 's/pid:.*/]/g' > "$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend
wpctl status > "$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend
pipewire_utils.py compare_wpctl_status -s1 "$PLAINBOX_SESSION_SHARE"/audio_settings_before_suspend -s2 "$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend
else
audio_settings.py store --file="$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend
diff "$PLAINBOX_SESSION_SHARE"/audio_settings_before_suspend "$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend
fi
diff "$PLAINBOX_SESSION_SHARE"/audio_settings_before_suspend "$PLAINBOX_SESSION_SHARE"/audio_settings_after_suspend

plugin: user-interact
category_id: com.canonical.plainbox::suspend
Expand Down

0 comments on commit 91a4ce8

Please sign in to comment.