diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2013-09-03 16:01:11 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-03 19:57:31 +0100 |
commit | 8c272641ef3e8410f331ca4133d28dea8f36e4f4 (patch) | |
tree | 3f2d716b48f1a534154295104a56621772c9ff08 /meta/lib/oeqa/runtime | |
parent | 619e63946fef32995363981aab288fc669e8ac04 (diff) | |
download | openembedded-core-8c272641ef3e8410f331ca4133d28dea8f36e4f4.tar.gz openembedded-core-8c272641ef3e8410f331ca4133d28dea8f36e4f4.tar.bz2 openembedded-core-8c272641ef3e8410f331ca4133d28dea8f36e4f4.zip |
lib/oeqa/runtime: smart: serve repo on host ip only and increase timeout
Don't start the http server on 0.0.0.0, listen on host ip (end of tap interface) only.
Also use the timeout option (default is 300s for ssh commands) for all the commands
run in this module (mostly because smart update timeouts on mips).
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r-- | meta/lib/oeqa/runtime/smart.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/smart.py b/meta/lib/oeqa/runtime/smart.py index 6e20f96967..59083ca817 100644 --- a/meta/lib/oeqa/runtime/smart.py +++ b/meta/lib/oeqa/runtime/smart.py @@ -17,7 +17,7 @@ class SmartTest(oeRuntimeTest): @skipUnlessPassed('test_smart_help') def smart(self, command, expected = 0): command = 'smart %s' % command - status, output = self.target.run(command) + status, output = self.target.run(command, 500) message = os.linesep.join([command, output]) self.assertEqual(status, expected, message) self.assertFalse("Cannot allocate memory" in output, message) @@ -48,7 +48,7 @@ class SmartRepoTest(SmartTest): @classmethod def setUpClass(self): - self.repo_server = HTTPService(oeRuntimeTest.tc.d.getVar('DEPLOY_DIR', True)) + self.repo_server = HTTPService(oeRuntimeTest.tc.d.getVar('DEPLOY_DIR', True), oeRuntimeTest.tc.qemu.host_ip) self.repo_server.start() @classmethod |