diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-03-02 21:26:55 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-07 17:23:03 +0000 |
commit | 3db71b408719d8588191edfc3b82554f72283e59 (patch) | |
tree | 32e7d541bfd2888e85ec7d15eef9807740223712 /bitbake/lib/toaster/bldcontrol/tests.py | |
parent | 790b2d1387a150b85612ad38a53bab788154e4bb (diff) | |
download | poky-3db71b408719d8588191edfc3b82554f72283e59.tar.gz |
bitbake: toaster: don't use sshbecontroller
Removed usage of sshbecontroller from bbcontroller, models, tests
and database schema.
(Bitbake rev: 3ee06eb7e96de5dba539ad52201867e77d06a53e)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/tests.py')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/tests.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/tests.py b/bitbake/lib/toaster/bldcontrol/tests.py index e8089914b7..f20cc7d4b1 100644 --- a/bitbake/lib/toaster/bldcontrol/tests.py +++ b/bitbake/lib/toaster/bldcontrol/tests.py | |||
@@ -9,7 +9,6 @@ from django.test import TestCase | |||
9 | 9 | ||
10 | from bldcontrol.bbcontroller import BitbakeController, BuildSetupException | 10 | from bldcontrol.bbcontroller import BitbakeController, BuildSetupException |
11 | from bldcontrol.localhostbecontroller import LocalhostBEController | 11 | from bldcontrol.localhostbecontroller import LocalhostBEController |
12 | from bldcontrol.sshbecontroller import SSHBEController | ||
13 | from bldcontrol.models import BuildEnvironment, BuildRequest | 12 | from bldcontrol.models import BuildEnvironment, BuildRequest |
14 | from bldcontrol.management.commands.runbuilds import Command | 13 | from bldcontrol.management.commands.runbuilds import Command |
15 | 14 | ||
@@ -110,29 +109,6 @@ class LocalhostBEControllerTests(TestCase, BEControllerTests): | |||
110 | def _getBEController(self, obe): | 109 | def _getBEController(self, obe): |
111 | return LocalhostBEController(obe) | 110 | return LocalhostBEController(obe) |
112 | 111 | ||
113 | class SSHBEControllerTests(TestCase, BEControllerTests): | ||
114 | def __init__(self, *args): | ||
115 | super(SSHBEControllerTests, self).__init__(*args) | ||
116 | |||
117 | def _getBuildEnvironment(self): | ||
118 | return BuildEnvironment.objects.create( | ||
119 | lock = BuildEnvironment.LOCK_FREE, | ||
120 | betype = BuildEnvironment.TYPE_SSH, | ||
121 | address = test_address, | ||
122 | sourcedir = test_sourcedir, | ||
123 | builddir = test_builddir ) | ||
124 | |||
125 | def _getBEController(self, obe): | ||
126 | return SSHBEController(obe) | ||
127 | |||
128 | def test_pathExists(self): | ||
129 | obe = BuildEnvironment.objects.create(betype = BuildEnvironment.TYPE_SSH, address= test_address) | ||
130 | sbc = SSHBEController(obe) | ||
131 | self.assertTrue(sbc._pathexists("/")) | ||
132 | self.assertFalse(sbc._pathexists("/.deadbeef")) | ||
133 | self.assertTrue(sbc._pathexists(sbc._shellcmd("pwd"))) | ||
134 | |||
135 | |||
136 | class RunBuildsCommandTests(TestCase): | 112 | class RunBuildsCommandTests(TestCase): |
137 | def test_bec_select(self): | 113 | def test_bec_select(self): |
138 | """ | 114 | """ |