summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdkext
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-03-01 12:17:27 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-01 23:27:11 +0000
commit30ad3624176f8928bc6cf54d47b0e4d38c3c64e5 (patch)
tree4294b7160be705802b1bf4a3a454bd3564a205ed /meta/lib/oeqa/sdkext
parent842bc0ff5ae1b2d85ed1c1c40b46bbd559adcb4b (diff)
downloadpoky-30ad3624176f8928bc6cf54d47b0e4d38c3c64e5.tar.gz
oeqa/esdk/devtool: clean setUpClass/tearDownClass
These methods are class not instance methods, so the argument should be cls not self. Also don't put variables into cls that we don't need there. (From OE-Core rev: 6ecd671fb09486b5852c47f06b5db372a2eb082b) 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/cases/devtool.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/meta/lib/oeqa/sdkext/cases/devtool.py b/meta/lib/oeqa/sdkext/cases/devtool.py
index baa528f0d7..ffaa2f00a5 100644
--- a/meta/lib/oeqa/sdkext/cases/devtool.py
+++ b/meta/lib/oeqa/sdkext/cases/devtool.py
@@ -11,14 +11,19 @@ from oeqa.core.decorator.data import skipIfNotDataVar
11 11
12class DevtoolTest(OESDKExtTestCase): 12class DevtoolTest(OESDKExtTestCase):
13 @classmethod 13 @classmethod
14 def setUpClass(self): 14 def setUpClass(cls):
15 self.myapp_src = os.path.join(self.tc.esdk_files_dir, "myapp") 15 myapp_src = os.path.join(cls.tc.esdk_files_dir, "myapp")
16 self.myapp_dst = os.path.join(self.tc.sdk_dir, "myapp") 16 cls.myapp_dst = os.path.join(cls.tc.sdk_dir, "myapp")
17 shutil.copytree(self.myapp_src, self.myapp_dst) 17 shutil.copytree(myapp_src, cls.myapp_dst)
18 18
19 self.myapp_cmake_src = os.path.join(self.tc.esdk_files_dir, "myapp_cmake") 19 myapp_cmake_src = os.path.join(cls.tc.esdk_files_dir, "myapp_cmake")
20 self.myapp_cmake_dst = os.path.join(self.tc.sdk_dir, "myapp_cmake") 20 cls.myapp_cmake_dst = os.path.join(cls.tc.sdk_dir, "myapp_cmake")
21 shutil.copytree(self.myapp_cmake_src, self.myapp_cmake_dst) 21 shutil.copytree(myapp_cmake_src, cls.myapp_cmake_dst)
22
23 @classmethod
24 def tearDownClass(cls):
25 shutil.rmtree(cls.myapp_dst)
26 shutil.rmtree(cls.myapp_cmake_dst)
22 27
23 def _test_devtool_build(self, directory): 28 def _test_devtool_build(self, directory):
24 self._run('devtool add myapp %s' % directory) 29 self._run('devtool add myapp %s' % directory)
@@ -111,8 +116,3 @@ class DevtoolTest(OESDKExtTestCase):
111 self._run('devtool reset %s' % package_nodejs) 116 self._run('devtool reset %s' % package_nodejs)
112 raise e 117 raise e
113 self._run('devtool reset %s '% package_nodejs) 118 self._run('devtool reset %s '% package_nodejs)
114
115 @classmethod
116 def tearDownClass(self):
117 shutil.rmtree(self.myapp_dst)
118 shutil.rmtree(self.myapp_cmake_dst)