New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 678627 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

chameleon: Let audio_AudioAfterSuspend support usage without audio box

Project Member Reported by cychiang@chromium.org, Jan 5 2017

Issue description

Hi Kalin, it will be helpful if this test can be run without audio box.
We can add test argument and control files to support the case where we assume audio jack is always plugged (for external mic, headphone), or always remains unplugged (for internal mic, internal speaker).

Then the test can cover the basic suspend/resume use case.
Could your team help improving this test ?

Thanks!

audio_AudioAfterReboot can be done too, but I think that is has lower priority.

 
Summary: chameleon: Let audio_AudioAfterSuspend support usage without audio box (was: chameleon: Let audio_AudioAfterSuspend support usage without)

Comment 2 by ka...@chromium.org, Jan 5 2017

Right. Thanks Jimmy for filing this issue.
I'll work on this and pass a change today or tomorrow.

Comment 3 by ka...@chromium.org, Jan 5 2017

Cc: cychiang@chromium.org
I think it will be even simpler if no assumed position is passed.
If plugger is not present, we do not want to test scenarios where state changes. Therefore only the basic tests will be covered:

- all time plugged - headphone, external_mic - do not need quiet environment
- all time unplugged - internal_speaker, and internal_mic - need quiet environment

To do this we can simply skip the plug or unplug action in action_plug_jack().

Change - https://chromium-review.googlesource.com/425321

With the case of plugged audio jack - I don't get it and tests are passing.

I have a problem for the unplugged(internal audio) tests:
- I try to test it in audio box with unplugged plugger data cable from audio box, and powered off plugger, so I can replicate if someone needs to test with no plugger. In this case I get chameleond.utils.audio_board._JackPluggerException from chameleon.setup_and_reset(). Why is that?





audio_AudioAfterSuspend.internal_speaker.DEBUG
36.3 KB Download
Hi Kalin, thanks for the quick fix!
I guess that is because chameleon only detects jack plugger when it starts.
So after you unplug plugger cable, you'll need to restart chameleond, or reboot chameleon.
Thanks!

Comment 5 by ka...@chromium.org, Jan 6 2017

I see. Thanks Jimmy.
Changes only to audio jack simple tests are left in the CL.

Comment 7 by ka...@chromium.org, Jan 13 2017

Labels: Merge-Request-56
Status: Fixed (was: Untriaged)
Project Member

Comment 8 by sheriffbot@chromium.org, Jan 14 2017

Labels: -Merge-Request-56 Hotlist-Merge-Approved Merge-Approved-56
Your change meets the bar and is auto-approved for M56. Please go ahead and merge the CL to branch 2924 manually. Please contact milestone owner if you have questions.
Owners: amineer@(clank), cmasso@(bling), gkihumba@(cros), bustamante@(desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 9 by bugdroid1@chromium.org, Jan 17 2017

Labels: merge-merged-release-R56-9000.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/ed927e1c4ead88b4ea8218dc5ccee514c70c585d

commit ed927e1c4ead88b4ea8218dc5ccee514c70c585d
Author: Kalin Stoyanov <kalin@chromium.org>
Date: Thu Jan 05 21:56:05 2017

Remove the audio-box dependency for audio tests

BUG= chromium:678627 
TEST=Tested for lab boards

Change-Id: I9bd4c7c5e423018c8d0ac98907c781a849520559
Reviewed-on: https://chromium-review.googlesource.com/425321
Commit-Ready: Kalin Stoyanov <kalin@chromium.org>
Tested-by: Kalin Stoyanov <kalin@chromium.org>
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Ruchi Jahagirdar <rjahagir@chromium.org>
(cherry picked from commit 8e2a74f5fae833acb268ed285ce486dd33cc2ba1)
Reviewed-on: https://chromium-review.googlesource.com/428204
Reviewed-by: Kalin Stoyanov <kalin@chromium.org>

[modify] https://crrev.com/ed927e1c4ead88b4ea8218dc5ccee514c70c585d/server/site_tests/audio_AudioAfterSuspend/control.external_mic
[modify] https://crrev.com/ed927e1c4ead88b4ea8218dc5ccee514c70c585d/server/site_tests/audio_AudioAfterSuspend/control.headphone
[modify] https://crrev.com/ed927e1c4ead88b4ea8218dc5ccee514c70c585d/server/site_tests/audio_AudioAfterSuspend/audio_AudioAfterSuspend.py

Status: Verified (was: Fixed)
Project Member

Comment 11 by sheriffbot@chromium.org, Jan 18 2017

This issue has been approved for a merge. Please merge the fix to any appropriate branches as soon as possible!

If all merges have been completed, please remove any remaining Merge-Approved labels from this issue.

Thanks for your time! To disable nags, add the Disable-Nags label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 12 by ka...@chromium.org, Jan 18 2017

Labels: -Hotlist-Merge-Approved -Merge-Approved-56

Sign in to add a comment