Bug 12355 - ERROR: core-image-sato-1.0-r0 do_testsdk: Function failed: do_testsdk test_python_stdout & test_python_testfile
Summary: ERROR: core-image-sato-1.0-r0 do_testsdk: Function failed: do_testsdk test_py...
Status: RESOLVED OBSOLETE
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Jose Perez C
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-11-15 21:50 UTC by Juro Bystricky
Modified: 2017-11-16 15:56 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juro Bystricky 2017-11-15 21:50:24 UTC
test_python_exists (python.PythonTest) ... ok
test_python_stdout (python.PythonTest) ... ERROR
test_python_testfile (python.PythonTest) ... ERROR

======================================================================
ERROR: test_python_stdout (python.PythonTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm64/build/meta/lib/oeqa/sdk/cases/python.py", line 23, in test_python_stdout
    output = self._run('python %s/test.py' % self.tc.sdk_dir)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm64/build/meta/lib/oeqa/sdk/case.py", line 12, in _run
    stderr=subprocess.STDOUT, universal_newlines=True)
  File "/usr/lib64/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/usr/lib64/python3.6/subprocess.py", line 418, in run
    output=stdout, stderr=stderr)
Observed for several MACHINES, (possibly related to gcc & binutils upgrade)

Build Configuration:
BB_VERSION           = "1.37.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "qemuarm64"
DISTRO               = "poky"
DISTRO_VERSION       = "2.4+snapshot-20171115"
TUNE_FEATURES        = "aarch64"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "heads/ross/mut2:817e261385307b83fa6d94f9700f94e5d41cfbf3"


Build Configuration:
BB_VERSION           = "1.37.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal-4.9"
TARGET_SYS           = "mips-poky-linux"
MACHINE              = "qemumips"
DISTRO               = "poky"
DISTRO_VERSION       = "2.4+snapshot-20171115"
TUNE_FEATURES        = "o32 bigendian fpu-hard mips32r2"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "heads/ross/mut2:817e261385307b83fa6d94f9700f94e5d41cfbf3"

Build Configuration:
BB_VERSION           = "1.37.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "mips64-poky-linux"
MACHINE              = "qemumips64"
DISTRO               = "poky"
DISTRO_VERSION       = "2.4+snapshot-20171115"
TUNE_FEATURES        = "n64 bigendian fpu-hard"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "heads/ross/mut2:817e261385307b83fa6d94f9700f94e5d41cfbf3"


Build Configuration:
BB_VERSION           = "1.37.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "qemuarm"
DISTRO               = "poky"
DISTRO_VERSION       = "2.4+snapshot-20171115"
TUNE_FEATURES        = "arm armv5 thumb dsp"
TARGET_FPU           = "soft"
meta                 
meta-poky            
meta-yocto-bsp       = "heads/ross/mut2:817e261385307b83fa6d94f9700f94e5d41cfbf3"


Build Configuration:
BB_VERSION           = "1.37.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "mips64-poky-linux-gnun32"
MACHINE              = "qemumips64"
DISTRO               = "poky"
DISTRO_VERSION       = "2.4+snapshot-20171115"
TUNE_FEATURES        = "n32 bigendian fpu-hard"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "heads/ross/mut2:817e261385307b83fa6d94f9700f94e5d41cfbf3"

Full log (non-persistent), for example:
https://autobuilder.yocto.io/builders/nightly-multilib/builds/600/steps/Running%20SDK%20Sanity%20Tests/logs/stdio


The error logs for for build configurations listed above running "Running SDK Sanity Tests" contain errors such as (with different "machine"):


test_python_exists (python.PythonTest) ... ok
test_python_stdout (python.PythonTest) ... ERROR
test_python_testfile (python.PythonTest) ... ERROR

======================================================================
ERROR: test_python_stdout (python.PythonTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-multilib/build/meta/lib/oeqa/sdk/cases/python.py", line 23, in test_python_stdout
    output = self._run('python %s/test.py' % self.tc.sdk_dir)
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-multilib/build/meta/lib/oeqa/sdk/case.py", line 12, in _run
    stderr=subprocess.STDOUT, universal_newlines=True)
  File "/usr/lib/python3.5/subprocess.py", line 316, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.5/subprocess.py", line 398, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '. /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/work/qemumips64-poky-linux-gnun32/core-image-minimal/1.0-r0/testimage-sdk/environment-setup-mips64-pokymllib64-linux > /dev/null; python /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/work/qemumips64-poky-linux-gnun32/core-image-minimal/1.0-r0/testimage-sdk//test.py;' returned non-zero exit status 1

======================================================================
ERROR: test_python_testfile (python.PythonTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-multilib/build/meta/lib/oeqa/sdk/cases/python.py", line 27, in test_python_testfile
    self._run('ls /tmp/testfile.python')
  File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-multilib/build/meta/lib/oeqa/sdk/case.py", line 12, in _run
    stderr=subprocess.STDOUT, universal_newlines=True)
  File "/usr/lib/python3.5/subprocess.py", line 316, in check_output
    **kwargs).stdout
  File "/usr/lib/python3.5/subprocess.py", line 398, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '. /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-multilib/build/build/tmp/work/qemumips64-poky-linux-gnun32/core-image-minimal/1.0-r0/testimage-sdk/environment-setup-mips64-pokymllib64-linux > /dev/null; ls /tmp/testfile.python;' returned non-zero exit status 2

----------------------------------------------------------------------
Ran 3 tests in 0.144s

FAILED (errors=2)
Comment 1 Ross Burton 2017-11-16 15:56:34 UTC
I wrote a new test and it doesn't work :)

Patches dropped, so closing.