Skip to content

Commit 15426b9

Browse files
author
Michael-Doyle Hudson
committed
update import statements
1 parent a3fb25a commit 15426b9

18 files changed

+31
-31
lines changed

.testr.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[DEFAULT]
22
test_command=python -m subunit.run $IDLIST
3-
test_id_list_default=lava.dispatcher.tests.test_suite
3+
test_id_list_default=lava_dispatcher.tests.test_suite

README

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ to your PATH environment variable, to provide easy access to the tools.
4949
The Dispatcher
5050
--------------
5151

52-
The code for the dispatcher lives in lava.dispatcher.
52+
The code for the dispatcher lives in lava_dispatcher.
5353

5454
XXX write this -- reference ./doc/QUICKSTART or copy it here.
5555

lava-dispatch

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
import sys
2323

24-
from lava.dispatcher import LavaTestJob
24+
from lava_dispatcher import LavaTestJob
2525

2626

2727
def usage(status):

lava_dispatcher/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
from datetime import datetime
2222
import json
23-
from lava.dispatcher.actions import get_all_cmds
24-
from lava.dispatcher.client import LavaClient
25-
from lava.dispatcher.android_client import LavaAndroidClient
23+
from lava_dispatcher.actions import get_all_cmds
24+
from lava_dispatcher.client import LavaClient
25+
from lava_dispatcher.android_client import LavaAndroidClient
2626
from uuid import uuid1
2727
import base64
2828

lava_dispatcher/actions/android_0xbench.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# You should have received a copy of the GNU General Public License
2020
# along with this program; if not, see <http://www.gnu.org/licenses>.
2121

22-
from lava.dispatcher.actions import BaseAndroidAction
22+
from lava_dispatcher.actions import BaseAndroidAction
2323
import time
2424
import pexpect
2525

lava_dispatcher/actions/android_basic.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
# You should have received a copy of the GNU General Public License
2020
# along with this program; if not, see <http://www.gnu.org/licenses>.
2121

22-
from lava.dispatcher.actions import BaseAndroidAction
23-
from lava.dispatcher.client import OperationFailed
24-
from lava.dispatcher.android_config import TESTER_STR
22+
from lava_dispatcher.actions import BaseAndroidAction
23+
from lava_dispatcher.client import OperationFailed
24+
from lava_dispatcher.android_config import TESTER_STR
2525
import time
2626
import pexpect
2727
import sys
2828
from datetime import datetime
29-
from lava.dispatcher.android_util import savebundlefile
29+
from lava_dispatcher.android_util import savebundlefile
3030

3131
class cmd_test_android_monkey(BaseAndroidAction):
3232
def run(self):

lava_dispatcher/actions/android_deploy.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
# You should have received a copy of the GNU General Public License
2020
# along with this program; if not, see <http://www.gnu.org/licenses>.
2121

22-
from lava.dispatcher.actions import BaseAction
23-
from lava.dispatcher.config import LAVA_IMAGE_TMPDIR, LAVA_IMAGE_URL, MASTER_STR
22+
from lava_dispatcher.actions import BaseAction
23+
from lava_dispatcher.config import LAVA_IMAGE_TMPDIR, LAVA_IMAGE_URL, MASTER_STR
2424
import os
2525
import shutil
2626
from tempfile import mkdtemp
27-
from lava.dispatcher.utils import download, download_with_cache
27+
from lava_dispatcher.utils import download, download_with_cache
2828

2929
class cmd_deploy_linaro_android_image(BaseAction):
3030
def run(self, boot, system, data, use_cache=True):

lava_dispatcher/actions/boot_control.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# along
2121
# with this program; if not, see <http://www.gnu.org/licenses>.
2222

23-
from lava.dispatcher.actions import BaseAction, BaseAndroidAction
23+
from lava_dispatcher.actions import BaseAction, BaseAndroidAction
2424

2525
class cmd_boot_linaro_android_image(BaseAndroidAction):
2626
""" Call client code to boot to the master image

lava_dispatcher/actions/deploy.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
import shutil
2525
from tempfile import mkdtemp
2626

27-
from lava.dispatcher.actions import BaseAction
28-
from lava.dispatcher.config import LAVA_IMAGE_TMPDIR, LAVA_IMAGE_URL, MASTER_STR
29-
from lava.dispatcher.utils import download, download_with_cache
27+
from lava_dispatcher.actions import BaseAction
28+
from lava_dispatcher.config import LAVA_IMAGE_TMPDIR, LAVA_IMAGE_URL, MASTER_STR
29+
from lava_dispatcher.utils import download, download_with_cache
3030

3131

3232
class cmd_deploy_linaro_image(BaseAction):

lava_dispatcher/actions/launch_control.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
# with this program; if not, see <http://www.gnu.org/licenses>.
2222

2323
import json
24-
from lava.dispatcher.actions import BaseAction
25-
from lava.dispatcher.config import LAVA_RESULT_DIR, MASTER_STR, LAVA_SERVER_IP
24+
from lava_dispatcher.actions import BaseAction
25+
from lava_dispatcher.config import LAVA_RESULT_DIR, MASTER_STR, LAVA_SERVER_IP
2626
import socket
2727
from threading import Thread
2828
import time

lava_dispatcher/actions/lava-test.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
# along
2121
# with this program; if not, see <http://www.gnu.org/licenses>.
2222

23-
from lava.dispatcher.actions import BaseAction
24-
from lava.dispatcher.client import OperationFailed
25-
from lava.dispatcher.config import LAVA_RESULT_DIR, MASTER_STR, TESTER_STR
23+
from lava_dispatcher.actions import BaseAction
24+
from lava_dispatcher.client import OperationFailed
25+
from lava_dispatcher.config import LAVA_RESULT_DIR, MASTER_STR, TESTER_STR
2626

2727
class cmd_lava_test_run(BaseAction):
2828
def run(self, test_name, timeout=-1):

lava_dispatcher/android_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
import pexpect
2121
import sys
22-
from lava.dispatcher.client import LavaClient
23-
from lava.dispatcher.android_config import BOARDS, TESTER_STR
22+
from lava_dispatcher.client import LavaClient
23+
from lava_dispatcher.android_config import BOARDS, TESTER_STR
2424

2525
class LavaAndroidClient(LavaClient):
2626
def __init__(self, hostname):

lava_dispatcher/android_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# You should have received a copy of the GNU General Public License
1818
# along with this program; if not, see <http://www.gnu.org/licenses>.
1919

20-
from lava.dispatcher.config import Board
20+
from lava_dispatcher.config import Board
2121

2222
class BeagleBoard(Board):
2323
uboot_cmds = ["mmc init",

lava_dispatcher/android_util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from datetime import datetime
2323
import json
2424
import subprocess
25-
from lava.dispatcher.config import LAVA_RESULT_DIR
25+
from lava_dispatcher.config import LAVA_RESULT_DIR
2626
import time
2727

2828
# TODO: Result saving could be replaced by linaro_dashboard_bundle probably.

lava_dispatcher/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import time
2424
from cStringIO import StringIO
2525

26-
from lava.dispatcher.config import (
26+
from lava_dispatcher.config import (
2727
BOARDS,
2828
LAVA_SERVER_IP,
2929
MASTER_STR,

lava_dispatcher/tests/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22

33
def test_suite():
4-
module_names = ['lava.dispatcher.tests.test_config',]
4+
module_names = ['lava_dispatcher.tests.test_config',]
55
loader = unittest.TestLoader()
66
return loader.loadTestsFromNames(module_names)

lava_dispatcher/tests/test_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from unittest import TestCase
2121

22-
from lava.dispatcher.config import BOARDS, LAVA_SERVER_IP
22+
from lava_dispatcher.config import BOARDS, LAVA_SERVER_IP
2323

2424
class TestConfigData(TestCase):
2525
def test_beagle01_uboot_cmds(self):

lava_dispatcher/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import urllib2
2424
import urlparse
2525

26-
from lava.dispatcher.config import LAVA_CACHEDIR
26+
from lava_dispatcher.config import LAVA_CACHEDIR
2727

2828
def download(url, path=""):
2929
urlpath = urlparse.urlsplit(url).path

0 commit comments

Comments
 (0)