~canonical-platform-qa/ubuntu-system-tests/global_test_context

« back to all changes in this revision

Viewing changes to ubuntu_system_tests/helpers/media.py

  • Committer: Sergio Cazzolato
  • Date: 2015-09-24 17:37:51 UTC
  • Revision ID: sergio.cazzolato@canonical.com-20150924173751-ievievxi1ozbs229
Creating context module used to store a shared disctionary with common objects

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
from unity8.process_helpers import start_job, stop_job, is_job_running
24
24
 
25
25
from ubuntu_system_tests.helpers import backup_restore_fixture as brf
 
26
from ubuntu_system_tests.helpers import context
26
27
from ubuntu_system_tests.helpers.file_system import get_media_folder_list
27
 
from ubuntu_system_tests.helpers.unity8.dash import get_dash
28
28
 
29
29
MEDIA_SCANNER = 'mediascanner-2.0'
30
30
 
34
34
    if is_job_running(MEDIA_SCANNER):
35
35
        stop_job(MEDIA_SCANNER)
36
36
    start_job(MEDIA_SCANNER)
37
 
    dash = get_dash()
 
37
    dash = context.shared.dash
38
38
    dash.wait_for_dash_loaded()
39
39
    dash.wait_for_processing_to_complete()
40
40