mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
oe-selftest: remove unused parameter
Removed unused parameter 'test' from runqemu function. (From OE-Core rev: c688b3bcbb57099fa72a9728bc708b109802f7fc) (From OE-Core rev: a7af1eb28fab515180c0fa01a003ac7b2ce0cff4) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c26a9c3afd
commit
d083fec6d1
@@ -1025,7 +1025,7 @@ class DevtoolTests(DevtoolBase):
|
||||
result = runCmd('devtool deploy-target -n %s root@localhost' % testrecipe)
|
||||
self.assertIn(' %s' % testfile, result.output)
|
||||
# Boot the image
|
||||
with runqemu(testimage, self) as qemu:
|
||||
with runqemu(testimage) as qemu:
|
||||
# Now really test deploy-target
|
||||
result = runCmd('devtool deploy-target -c %s root@%s' % (testrecipe, qemu.ip))
|
||||
# Run a test command to see if it was installed properly
|
||||
|
||||
@@ -31,7 +31,7 @@ class ImageFeatures(oeSelfTest):
|
||||
# Build a core-image-minimal
|
||||
bitbake('core-image-minimal')
|
||||
|
||||
with runqemu("core-image-minimal", self) as qemu:
|
||||
with runqemu("core-image-minimal") as qemu:
|
||||
# Attempt to ssh with each user into qemu with empty password
|
||||
for user in [self.root_user, self.test_user]:
|
||||
ssh = SSHControl(ip=qemu.ip, logfile=qemu.sshlog, user=user)
|
||||
@@ -58,7 +58,7 @@ class ImageFeatures(oeSelfTest):
|
||||
# Build a core-image-minimal
|
||||
bitbake('core-image-minimal')
|
||||
|
||||
with runqemu("core-image-minimal", self) as qemu:
|
||||
with runqemu("core-image-minimal") as qemu:
|
||||
# Attempt to ssh with each user into qemu with empty password
|
||||
for user in [self.root_user, self.test_user]:
|
||||
ssh = SSHControl(ip=qemu.ip, logfile=qemu.sshlog, user=user)
|
||||
@@ -112,7 +112,7 @@ class ImageFeatures(oeSelfTest):
|
||||
self.fail('No rpm package found in image')
|
||||
|
||||
# Now do a couple of runtime tests
|
||||
with runqemu("core-image-minimal", self) as qemu:
|
||||
with runqemu("core-image-minimal") as qemu:
|
||||
command = "rpm --version"
|
||||
status, output = qemu.run(command)
|
||||
self.assertEqual(0, status, 'Failed to run command "%s": %s' % (command, output))
|
||||
|
||||
@@ -178,7 +178,7 @@ def create_temp_layer(templayerdir, templayername, priority=999, recipepathspec=
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
def runqemu(pn, test):
|
||||
def runqemu(pn):
|
||||
|
||||
import bb.tinfoil
|
||||
import bb.build
|
||||
|
||||
Reference in New Issue
Block a user