From 3e3abf0753a3bf1737dc4f476df4e70d31070391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Tue, 2 Feb 2016 16:37:36 -0600 Subject: oeqa/sdkext/devtool.py: Add location test to ensure that devtool is the eSDK one. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aníbal Limón Signed-off-by: Ross Burton --- meta/lib/oeqa/sdkext/devtool.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta/lib/oeqa/sdkext/devtool.py b/meta/lib/oeqa/sdkext/devtool.py index 0262ed30fa..c5bb3102a6 100644 --- a/meta/lib/oeqa/sdkext/devtool.py +++ b/meta/lib/oeqa/sdkext/devtool.py @@ -11,10 +11,17 @@ class DevtoolTest(oeSDKExtTest): self.myapp_dst = os.path.join(self.tc.sdktestdir, "myapp") shutil.copytree(self.myapp_src, self.myapp_dst) + def test_devtool_location(self): + output = self._run('which devtool') + self.assertEqual(output.startswith(self.tc.sdktestdir), True, \ + msg="Seems that devtool isn't the eSDK one: %s" % output) + + @skipUnlessPassed('test_devtool_location') def test_devtool_add_reset(self): self._run('devtool add myapp %s' % self.myapp_dst) self._run('devtool reset myapp') + @skipUnlessPassed('test_devtool_location') def test_devtool_build(self): self._run('devtool add myapp %s' % self.myapp_dst) self._run('devtool build myapp') -- cgit v1.2.3