scripts/checkvnc: Add checkvnc script from old autobuilder codebase

Update the scripts to correctly reference the new script.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2018-08-30 13:22:13 +01:00
parent db7588f5f8
commit 1cb54ada86
2 changed files with 11 additions and 1 deletions

10
scripts/checkvnc Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
#
# check if vnc server is running, and if not, cleanup and restart
#
grep ':170D' /proc/net/tcp > /dev/null
if [ $? != 0 ]; then
echo "Xvnc not running, attempting restart"
vncserver -kill :1
vncserver
fi

View File

@ -140,7 +140,7 @@ for stepnum in range(1, maxsteps + 1):
sanitytargets = utils.getconfigvar("SANITYTARGETS", ourconfig, target, stepnum)
if sanitytargets:
utils.printheader("Step %s/%s: Running bitbake %s" % (stepnum, maxsteps, sanitytargets))
bitbakecmd(builddir, "checkvnc; DISPLAY=:1 bitbake %s" % sanitytargets, report, stepnum)
bitbakecmd(builddir, "%s/checkvnc; DISPLAY=:1 bitbake %s" % (scriptsdir, sanitytargets), report, stepnum)
# Run any extra commands specified
cmds = utils.getconfiglist("EXTRACMDS", ourconfig, target, stepnum)