]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/sdkext/devtool.py: Add location test to ensure that devtool is the eSDK one.
authorAníbal Limón <anibal.limon@linux.intel.com>
Tue, 2 Feb 2016 22:37:36 +0000 (16:37 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Feb 2016 15:51:03 +0000 (15:51 +0000)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/sdkext/devtool.py

index 0262ed30fa4c0c9ef6544ef5fa19631ceb1fcd8c..c5bb3102a627c6514f1f93f27bb99257f53a9f1c 100644 (file)
@@ -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')