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>
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
@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()
@classmethod
def tearDownClass(self):
self.project.clean()
- self.restartTarget()
@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()
@classmethod
def tearDownClass(self):
self.project.clean()
- self.restartTarget()
@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()
@classmethod
def tearDownClass(self):
self.project.clean()
- self.restartTarget()