26
26
from lava_dispatcher.tests.helper import *
28
test_config_dir = os.path.join(os.path.dirname(__file__), 'test-config')
31
class TestConfigData(TestCase):
35
lava_dispatcher.config.custom_config_path = test_config_dir
39
lava_dispatcher.config.custom_config_path = None
41
def test_beagle01_uboot_cmds(self):
42
beagle01_config = get_device_config("beaglexm01")
46
"setenv bootcmd 'fatload mmc 0:3 0x80000000 uImage; fatload mmc "
47
"0:3 0x81600000 uInitrd; bootm 0x80000000 0x81600000'",
48
"setenv bootargs ' console=tty0 console=ttyO2,115200n8 "
49
"root=LABEL=testrootfs rootwait ro earlyprintk fixrtc "
50
"nocompcache vram=12M omapfb.debug=y "
51
"omapfb.mode=dvi:1280x720MR-16@60'",
53
uboot_cmds = beagle01_config.boot_cmds
54
self.assertEquals(expected, string_to_list(uboot_cmds))
28
class TestConfigData(LavaDispatcherTestCase):
56
30
def test_server_ip(self):
31
create_config('lava-dispatcher.conf', { 'LAVA_SERVER_IP': '99.99.99.99' })
57
32
server_config = get_config()
58
expected = "192.168.200.200"
33
expected = "99.99.99.99"
59
34
lava_server_ip = server_config.lava_server_ip
60
35
self.assertEqual(expected, lava_server_ip)