Bug 12975 - 'bin/sh: 1: checkvnc:
Summary: 'bin/sh: 1: checkvnc:
Status: RESOLVED FIXED
Alias: None
Product: AutoBuilder
Classification: Infrastructure
Component: autobuilder (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.7
Assignee: Armin Kuster
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-11-01 14:29 UTC by Armin Kuster
Modified: 2018-11-08 20:49 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Armin Kuster 2018-11-01 14:29:28 UTC
build logs show this error
 'bin/sh: 1: checkvnc: not found'
Comment 1 Armin Kuster 2018-11-02 01:05:18 UTC
Step2b of nightly-oe-selftest
Comment 2 Armin Kuster 2018-11-02 01:54:15 UTC
This is confusing. The helper code has this:

   # Execute the sanity targets for this configuration
    sanitytargets = utils.getconfigvar("SANITYTARGETS", ourconfig, args.target, stepnum)
    if sanitytargets:
        utils.printheader("Step %s/%s: Running bitbake %s" % (stepnum, maxsteps, sanitytargets))
        bitbakecmd(args.builddir, "%s/checkvnc; DISPLAY=:1 bitbake %s" % (scriptsdir, sanitytargets), report, stepnum, 'c')

But I don't see any "Step" printout before the checkvnc. It happens before the code should be run.
Comment 3 Armin Kuster 2018-11-02 02:04:07 UTC
/scripts/run-config  is run twice. One is in "def create_builder_factory()" and the other is not.

The difference is the one in create_builder_factory() is passing ' "-b", util.Interpolate("%(prop:buildappsrcrev)s"),' .
Comment 4 Richard Purdie 2018-11-08 20:15:42 UTC
The problem is the other invocation:

config.json:                "EXTRACMDS" : ["checkvnc; DISPLAY=:1 oe-selftest --skip-tests distrodata.Distrodata.test_checkpkg"],

and the hard part is that we don't know scriptsdir here to be able to know where the script is...