Bug 10019 - build-perf-test-wrapper.sh failing to execute performance test
Summary: build-perf-test-wrapper.sh failing to execute performance test
Status: RESOLVED FIXED
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.2 M3
Assignee: Aníbal Limón
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-07-25 17:30 UTC by Jose Perez C
Modified: 2017-12-06 17:06 UTC (History)
2 users (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 Jose Perez C 2016-07-25 17:30:11 UTC
New script for performance test is failing to launch the test cases for performance 


######### Steps ###############

1.- Clone poky 
2.- Execute build-perf-test-wrapper.sh under poky root folder (without sourcing the environment )
              - Poky $ ./scripts/contrib/build-perf-test-wrapper.sh


Expected Results 

All test should be launched and executed correctly 

Actual Result 

[2016-07-22 06:52:30,782] INFO: Using Git branch:revision master:36feb38045b7a2af86ece147fec54b0db3bf491f
[2016-07-22 06:52:30,785] INFO: Executing test test1: Measure wall clock of bitbake core-image-sato and size of tmp dir
[2016-07-22 07:12:22,885] ERROR: Test execution failed with:
----- TRACEBACK ------------------------------------------------------------
Traceback (most recent call last):
  File "/media/yocto_disk/poky_new_script/meta/lib/oeqa/buildperf/base.py", line 136, in run_tests
    test.run()
  File "/media/yocto_disk/poky_new_script/meta/lib/oeqa/buildperf/base.py", line 224, in run
    self._run()
  File "/media/yocto_disk/poky_new_script/meta/lib/oeqa/buildperf/basic_tests.py", line 27, in _run
    self.log_cmd_output("bitbake {} -c fetchall".format(self.build_target))
  File "/media/yocto_disk/poky_new_script/meta/lib/oeqa/buildperf/base.py", line 238, in log_cmd_output
    runCmd(cmd, stdout=fobj)
  File "/media/yocto_disk/poky_new_script/meta/lib/oeqa/utils/commands.py", line 101, in runCmd
    cmd.run()
  File "/media/yocto_disk/poky_new_script/meta/lib/oeqa/utils/commands.py", line 70, in run
    self.stop()
  File "/media/yocto_disk/poky_new_script/meta/lib/oeqa/utils/commands.py", line 81, in stop
    self.output = self.output.decode("utf-8").rstrip()
AttributeError: 'NoneType' object has no attribute 'decode'