]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/runtime: drop restartTarget method
authorStefan Stanacar <stefanx.stanacar@intel.com>
Wed, 29 Jan 2014 12:24:04 +0000 (14:24 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Jan 2014 17:36:30 +0000 (17:36 +0000)
Restart is a property of a specific target, not
of a test class, should a test really need to restart
the target the direct method should be called.
Also some tests used this to enforce more ram, which
makes sense only for qemu targets only (and the inital
reason this was needed isn't valid anymore, qemu machines had
the default ram size bumped a while ago).

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/oetest.py
meta/lib/oeqa/runtime/buildcvs.py
meta/lib/oeqa/runtime/buildiptables.py
meta/lib/oeqa/runtime/buildsudoku.py

index 70d12a225e41d4f4df8b5ffd087def9d6d0c33bc..23a3e5d69f5fd5eeb3255c2c82db6b309f8d2921 100644 (file)
@@ -83,10 +83,6 @@ class oeRuntimeTest(oeTest):
         self.target = oeRuntimeTest.tc.target
         super(oeRuntimeTest, self).__init__(methodName)
 
-    @classmethod
-    def restartTarget(self,params=None):
-        oeRuntimeTest.tc.target.restart(params)
-
 
 def getmodule(pos=2):
     # stack returns a list of tuples containg frame information
index f024dfa99a1a348b66c8d6a981a03e20c7c96f95..9bf764d00fc68883fd627289b206b28821451ac6 100644 (file)
@@ -10,7 +10,6 @@ class BuildCvsTest(oeRuntimeTest):
 
     @classmethod
     def setUpClass(self):
-        self.restartTarget("-m 512")
         self.project = TargetBuildProject(oeRuntimeTest.tc.target,
                         "http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.bz2")
         self.project.download_archive()
@@ -29,4 +28,3 @@ class BuildCvsTest(oeRuntimeTest):
     @classmethod
     def tearDownClass(self):
         self.project.clean()
-        self.restartTarget()
index 88ece3bd8a2993a2f57e289ed198b72c8624ea6d..50faf5d775963cade102436937118f3e6436a686 100644 (file)
@@ -10,7 +10,6 @@ class BuildIptablesTest(oeRuntimeTest):
 
     @classmethod
     def setUpClass(self):
-        self.restartTarget("-m 512")
         self.project = TargetBuildProject(oeRuntimeTest.tc.target,
                         "http://netfilter.org/projects/iptables/files/iptables-1.4.13.tar.bz2")
         self.project.download_archive()
@@ -29,4 +28,3 @@ class BuildIptablesTest(oeRuntimeTest):
     @classmethod
     def tearDownClass(self):
         self.project.clean()
-        self.restartTarget()
index 0a7306ddc71687647c5be847d8643f856dbe8c3b..61dc1ff2dc234ff148d7bb8e145b93648760adb3 100644 (file)
@@ -10,7 +10,6 @@ class SudokuTest(oeRuntimeTest):
 
     @classmethod
     def setUpClass(self):
-        self.restartTarget("-m 512")
         self.project = TargetBuildProject(oeRuntimeTest.tc.target,
                         "http://downloads.sourceforge.net/project/sudoku-savant/sudoku-savant/sudoku-savant-1.3/sudoku-savant-1.3.tar.bz2")
         self.project.download_archive()
@@ -26,4 +25,3 @@ class SudokuTest(oeRuntimeTest):
     @classmethod
     def tearDownClass(self):
         self.project.clean()
-        self.restartTarget()