Bug 10097 - Add support for non interactive execution of build-perf-test-wrapper.sh script
Summary: Add support for non interactive execution of build-perf-test-wrapper.sh script
Status: VERIFIED NOTABUG
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Undecided enhancement
Target Milestone: ---
Assignee: Markus Lehtonen
QA Contact: Jose Perez C
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-08-08 16:54 UTC by Jose Perez C
Modified: 2016-08-09 21:47 UTC (History)
0 users

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-08-08 16:54:01 UTC
Currently build-perf-test-wrapper.sh asks for sudo password to check KernelDropCaches in an interactive way, our machines needs a method to execute this script in non interactive way.
Comment 1 Markus Lehtonen 2016-08-09 06:59:26 UTC
oe-build-perf test script (that is being called by build-perf-test-wrapper.sh) needs root privileges in order to drop the kernel caches. The script uses the tee command for writing into /proc/sys/vm/drop_caches. You can avoid the password prompt by defining:

<user> ALL = NOPASSWD: /usr/bin/tee /proc/sys/vm/drop_caches

in a sudoers file (e.g. /etc/sudoers.d/buildperf). Just replace <user> with the username that is supposed to be able to run the script without a password probmpt.
Comment 2 Jose Perez C 2016-08-09 21:47:19 UTC
Not a bug