diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-02-02 16:37:36 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-10 16:06:23 +0000 |
commit | e22fbce142b3c20ed0c6e363403eb6d33e395bc3 (patch) | |
tree | 1beef9b499a6662778f634874f976ae55305affb /meta/lib/oeqa/sdkext | |
parent | 92d0cc582c5504ba6cdc2e82eb234b99debb7690 (diff) | |
download | poky-e22fbce142b3c20ed0c6e363403eb6d33e395bc3.tar.gz |
oeqa/sdkext/devtool.py: Add location test to ensure that devtool is the eSDK one.
(From OE-Core rev: 3e3abf0753a3bf1737dc4f476df4e70d31070391)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdkext')
-rw-r--r-- | meta/lib/oeqa/sdkext/devtool.py | 7 |
1 files changed, 7 insertions, 0 deletions
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): | |||
11 | self.myapp_dst = os.path.join(self.tc.sdktestdir, "myapp") | 11 | self.myapp_dst = os.path.join(self.tc.sdktestdir, "myapp") |
12 | shutil.copytree(self.myapp_src, self.myapp_dst) | 12 | shutil.copytree(self.myapp_src, self.myapp_dst) |
13 | 13 | ||
14 | def test_devtool_location(self): | ||
15 | output = self._run('which devtool') | ||
16 | self.assertEqual(output.startswith(self.tc.sdktestdir), True, \ | ||
17 | msg="Seems that devtool isn't the eSDK one: %s" % output) | ||
18 | |||
19 | @skipUnlessPassed('test_devtool_location') | ||
14 | def test_devtool_add_reset(self): | 20 | def test_devtool_add_reset(self): |
15 | self._run('devtool add myapp %s' % self.myapp_dst) | 21 | self._run('devtool add myapp %s' % self.myapp_dst) |
16 | self._run('devtool reset myapp') | 22 | self._run('devtool reset myapp') |
17 | 23 | ||
24 | @skipUnlessPassed('test_devtool_location') | ||
18 | def test_devtool_build(self): | 25 | def test_devtool_build(self): |
19 | self._run('devtool add myapp %s' % self.myapp_dst) | 26 | self._run('devtool add myapp %s' % self.myapp_dst) |
20 | self._run('devtool build myapp') | 27 | self._run('devtool build myapp') |