~canonical-platform-qa/ubuntu-system-tests/qemu-build-snap

« back to all changes in this revision

Viewing changes to ubuntu_system_tests/external_tests/utils.py

  • Committer: Tarmac
  • Author(s): Heber Parrucci
  • Date: 2016-12-06 20:07:18 UTC
  • mfrom: (489.1.5 fix-import-issues)
  • Revision ID: tarmac-20161206200718-bmjos3hd3zfi5roj
fixing import errors.

Approved by Richard Huddie, platform-qa-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import os
22
22
 
23
 
from ubuntu_system_tests.helpers.init_systems import get_init_system
24
 
from ubuntu_system_tests.helpers.unity8.job import Unity8Job
25
 
 
26
 
unity8 = Unity8Job()
27
 
 
28
23
 
29
24
def get_external_test_ids(testsuite_list_filepath=None):
30
25
    """Return a list of strings of test ids."""
43
38
        os.path.dirname(__file__),
44
39
        'testsuite_list'
45
40
    )
46
 
 
47
 
 
48
 
def ensure_unity_in_required_state(test_id):
49
 
    if test_id.startswith('unity8'):
50
 
        get_init_system().ensure_stopped(unity8)
51
 
    else:
52
 
        unity8.ensure_unity_running_and_greeter_hidden()