Add an option so we can pass custom qemuimage tests, by appending TEST_SCEN to local.conf.
This isn't used by any buildsets right now. It could be used when we want to run only certain sanity tests (i.e don't run all the tests in the image scenario but run only sanity:boot and sanity:dmesg by appending TEST_SCENE = "sanity:boot sanity:dmesg") Signed-off-by: Stefan Stanacar <stefanx.stana...@intel.com> --- lib/python2.7/site-packages/autobuilder/buildsteps/RunSanityTests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/RunSanityTests.py b/lib/python2.7/site-packages/autobuilder/buildsteps/RunSanityTests.py index a352de5..1a428be 100644 --- a/lib/python2.7/site-packages/autobuilder/buildsteps/RunSanityTests.py +++ b/lib/python2.7/site-packages/autobuilder/buildsteps/RunSanityTests.py @@ -23,6 +23,7 @@ class RunSanityTests(ShellCommand): def __init__(self, factory, argdict=None, **kwargs): self.factory = factory self.images="" + self.scene=None for k, v in argdict.iteritems(): setattr(self, k, v) self.description = "Running Sanity Tests" @@ -31,6 +32,8 @@ class RunSanityTests(ShellCommand): command = command + "(echo > /dev/tcp/localhost/5901) 2> /dev/null;" command = command + 'if [ $? -ne 0 ]; then echo "Starting a VNC server on :1"; vncserver :1; else echo "Will use a VNC server already running on :1"; fi;' command = command + "echo 'IMAGETEST = \"qemu\"' >> ./conf/auto.conf;" + if self.scene: + command = command + "echo 'TEST_SCEN = \"" + self.scene + "\"'" + " >> ./conf/auto.conf;" command = command + "DISPLAY=localhost:1 bitbake " + self.images + " -c qemuimagetest_standalone" # Timeout needs to be passed to LoggingBuildStep as a kwarg self.timeout = 100000 -- 1.8.1.4 _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto