diff options
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 | """ |
