summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)