diff options
author | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2019-12-24 09:02:39 +0100 |
---|---|---|
committer | Enric Balletbo i Serra <enric.balletbo@collabora.com> | 2019-12-24 09:10:27 +0100 |
commit | f951be41ca7419e34adaaaf36b5f0699b4ab33a7 (patch) | |
tree | 46b090cb0e8ae34e86cb3064ca32c45e800b9892 | |
parent | 0921835b5016f14c867dc157892b1cb7390831fe (diff) | |
download | cros-ec-tests-f951be41ca7419e34adaaaf36b5f0699b4ab33a7.tar.gz |
Create a main 'cros' python package
Have a helpers and runners packages is too generic, so create a 'cros'
package to avoid future conflicts and to make clear the scope of the
modules inside the 'cros' package.
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
-rw-r--r-- | cros/__init__.py (renamed from helpers/__init__.py) | 0 | ||||
-rw-r--r-- | cros/helpers/__init__.py (renamed from runners/__init__.py) | 0 | ||||
-rw-r--r-- | cros/helpers/kernel.py (renamed from helpers/kernel.py) | 0 | ||||
-rw-r--r-- | cros/helpers/mcu.py (renamed from helpers/mcu.py) | 2 | ||||
-rw-r--r-- | cros/helpers/sysfs.py (renamed from helpers/sysfs.py) | 0 | ||||
-rw-r--r-- | cros/runners/__init__.py (renamed from tests/__init__.py) | 0 | ||||
-rwxr-xr-x | cros/runners/lava_runner.py (renamed from runners/lava_runner.py) | 14 | ||||
-rw-r--r-- | cros/tests/__init__.py | 0 | ||||
-rw-r--r-- | cros/tests/cros_ec_accel.py (renamed from tests/cros_ec_accel.py) | 4 | ||||
-rw-r--r-- | cros/tests/cros_ec_extcon.py (renamed from tests/cros_ec_extcon.py) | 2 | ||||
-rw-r--r-- | cros/tests/cros_ec_gyro.py (renamed from tests/cros_ec_gyro.py) | 4 | ||||
-rw-r--r-- | cros/tests/cros_ec_mcu.py (renamed from tests/cros_ec_mcu.py) | 2 | ||||
-rw-r--r-- | cros/tests/cros_ec_power.py (renamed from tests/cros_ec_power.py) | 2 | ||||
-rw-r--r-- | cros/tests/cros_ec_pwm.py (renamed from tests/cros_ec_pwm.py) | 2 | ||||
-rw-r--r-- | cros/tests/cros_ec_rtc.py (renamed from tests/cros_ec_rtc.py) | 4 | ||||
-rw-r--r-- | crostests.yaml | 2 | ||||
-rw-r--r-- | docs/source/testcases.rst | 14 | ||||
-rw-r--r-- | docs/source/testhelpers.rst | 6 | ||||
-rw-r--r-- | docs/source/testrunners.rst | 2 |
19 files changed, 30 insertions, 30 deletions
diff --git a/helpers/__init__.py b/cros/__init__.py index e69de29..e69de29 100644 --- a/helpers/__init__.py +++ b/cros/__init__.py diff --git a/runners/__init__.py b/cros/helpers/__init__.py index e69de29..e69de29 100644 --- a/runners/__init__.py +++ b/cros/helpers/__init__.py diff --git a/helpers/kernel.py b/cros/helpers/kernel.py index d36bb87..d36bb87 100644 --- a/helpers/kernel.py +++ b/cros/helpers/kernel.py diff --git a/helpers/mcu.py b/cros/helpers/mcu.py index 3bfca58..1855788 100644 --- a/helpers/mcu.py +++ b/cros/helpers/mcu.py @@ -3,7 +3,7 @@ import fcntl import os -from helpers.sysfs import * +from cros.helpers.sysfs import * from ctypes import * EC_CMD_PROTO_VERSION = 0x0000 diff --git a/helpers/sysfs.py b/cros/helpers/sysfs.py index 0700c01..0700c01 100644 --- a/helpers/sysfs.py +++ b/cros/helpers/sysfs.py diff --git a/tests/__init__.py b/cros/runners/__init__.py index e69de29..e69de29 100644 --- a/tests/__init__.py +++ b/cros/runners/__init__.py diff --git a/runners/lava_runner.py b/cros/runners/lava_runner.py index b94ce8c..75a723d 100755 --- a/runners/lava_runner.py +++ b/cros/runners/lava_runner.py @@ -4,13 +4,13 @@ import sys import unittest -from tests.cros_ec_accel import * -from tests.cros_ec_gyro import * -from tests.cros_ec_mcu import * -from tests.cros_ec_pwm import * -from tests.cros_ec_rtc import * -from tests.cros_ec_power import * -from tests.cros_ec_extcon import * +from cros.tests.cros_ec_accel import * +from cros.tests.cros_ec_gyro import * +from cros.tests.cros_ec_mcu import * +from cros.tests.cros_ec_pwm import * +from cros.tests.cros_ec_rtc import * +from cros.tests.cros_ec_power import * +from cros.tests.cros_ec_extcon import * class LavaTextTestResult(unittest.TestResult): diff --git a/cros/tests/__init__.py b/cros/tests/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/cros/tests/__init__.py diff --git a/tests/cros_ec_accel.py b/cros/tests/cros_ec_accel.py index 6d20d79..6884ab5 100644 --- a/tests/cros_ec_accel.py +++ b/cros/tests/cros_ec_accel.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from helpers.sysfs import * -from helpers.kernel import * +from cros.helpers.sysfs import * +from cros.helpers.kernel import * import math import unittest diff --git a/tests/cros_ec_extcon.py b/cros/tests/cros_ec_extcon.py index f68c4c9..b72a1ec 100644 --- a/tests/cros_ec_extcon.py +++ b/cros/tests/cros_ec_extcon.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from helpers.sysfs import * +from cros.helpers.sysfs import * import unittest diff --git a/tests/cros_ec_gyro.py b/cros/tests/cros_ec_gyro.py index 8d11b18..0f48d2e 100644 --- a/tests/cros_ec_gyro.py +++ b/cros/tests/cros_ec_gyro.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from helpers.sysfs import * -from helpers.kernel import * +from cros.helpers.sysfs import * +from cros.helpers.kernel import * import unittest diff --git a/tests/cros_ec_mcu.py b/cros/tests/cros_ec_mcu.py index 1b5bb51..f108d44 100644 --- a/tests/cros_ec_mcu.py +++ b/cros/tests/cros_ec_mcu.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from helpers.mcu import * +from cros.helpers.mcu import * import fcntl import unittest diff --git a/tests/cros_ec_power.py b/cros/tests/cros_ec_power.py index 0515d4b..6cc0e8c 100644 --- a/tests/cros_ec_power.py +++ b/cros/tests/cros_ec_power.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from helpers.sysfs import * +from cros.helpers.sysfs import * import unittest diff --git a/tests/cros_ec_pwm.py b/cros/tests/cros_ec_pwm.py index db084a6..2950ee2 100644 --- a/tests/cros_ec_pwm.py +++ b/cros/tests/cros_ec_pwm.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from helpers.sysfs import * +from cros.helpers.sysfs import * import unittest diff --git a/tests/cros_ec_rtc.py b/cros/tests/cros_ec_rtc.py index 3aa05c1..60ca265 100644 --- a/tests/cros_ec_rtc.py +++ b/cros/tests/cros_ec_rtc.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -from helpers.mcu import * -from helpers.sysfs import * +from cros.helpers.mcu import * +from cros.helpers.sysfs import * import unittest diff --git a/crostests.yaml b/crostests.yaml index 67774bf..74a70b2 100644 --- a/crostests.yaml +++ b/crostests.yaml @@ -6,4 +6,4 @@ metadata: run: steps: - - python3 -m runners.lava_runner + - python3 -m cros.runners.lava_runner diff --git a/docs/source/testcases.rst b/docs/source/testcases.rst index 8711594..c69c91b 100644 --- a/docs/source/testcases.rst +++ b/docs/source/testcases.rst @@ -12,42 +12,42 @@ collected into test suites. cros-ec-accel ============= -.. automodule:: tests.cros_ec_accel +.. automodule:: cros.tests.cros_ec_accel :members: cros-ec-extcon ============== -.. automodule:: tests.cros_ec_extcon +.. automodule:: cros.tests.cros_ec_extcon :members: cros-ec-gyro ============ -.. automodule:: tests.cros_ec_gyro +.. automodule:: cros.tests.cros_ec_gyro :members: cros-ec-mcu =========== -.. automodule:: tests.cros_ec_mcu +.. automodule:: cros.tests.cros_ec_mcu :members: cros-ec-power ============= -.. automodule:: tests.cros_ec_power +.. automodule:: cros.tests.cros_ec_power :members: cros-ec-pwm =========== -.. automodule:: tests.cros_ec_pwm +.. automodule:: cros.tests.cros_ec_pwm :members: cros-ec-rtc =========== -.. automodule:: tests.cros_ec_rtc +.. automodule:: cros.tests.cros_ec_rtc :members: diff --git a/docs/source/testhelpers.rst b/docs/source/testhelpers.rst index d26e77b..380b1bd 100644 --- a/docs/source/testhelpers.rst +++ b/docs/source/testhelpers.rst @@ -5,18 +5,18 @@ Test Helpers kernel ====== -.. automodule:: helpers.kernel +.. automodule:: cros.helpers.kernel :members: mcu === -.. automodule:: helpers.mcu +.. automodule:: cros.helpers.mcu :members: sysfs ===== -.. automodule:: helpers.sysfs +.. automodule:: cros.helpers.sysfs :members: diff --git a/docs/source/testrunners.rst b/docs/source/testrunners.rst index 63330db..753dea3 100644 --- a/docs/source/testrunners.rst +++ b/docs/source/testrunners.rst @@ -13,6 +13,6 @@ Test Runner, you can easily: LAVA Test Runner ---------------- -.. automodule:: runners.lava_runner +.. automodule:: cros.runners.lava_runner :members: |