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: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
parent 0921835b
......@@ -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
......
......@@ -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):
......
#!/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
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from helpers.sysfs import *
from cros.helpers.sysfs import *
import unittest
......
#!/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
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from helpers.mcu import *
from cros.helpers.mcu import *
import fcntl
import unittest
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from helpers.sysfs import *
from cros.helpers.sysfs import *
import unittest
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from helpers.sysfs import *
from cros.helpers.sysfs import *
import unittest
......
#!/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
......
......@@ -6,4 +6,4 @@ metadata:
run:
steps:
- python3 -m runners.lava_runner
- python3 -m cros.runners.lava_runner
......@@ -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:
......@@ -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:
......@@ -13,6 +13,6 @@ Test Runner, you can easily:
LAVA Test Runner
----------------
.. automodule:: runners.lava_runner
.. automodule:: cros.runners.lava_runner
:members:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment