summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiaqing Zhao <jiaqing.zhao@linux.intel.com>2022-05-13 17:40:15 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-20 10:08:06 +0100
commit51e3b634277be18c09e376aa44e3656ee17da2e1 (patch)
treec3a3ac70b4f6f297595cf1c02b64446d6b519964
parentd7f2bec47aa12d05631cb4f1ec73760e636f9f77 (diff)
downloadpoky-51e3b634277be18c09e376aa44e3656ee17da2e1.tar.gz
strace: Don't run ptest as "nobody"
strace ptests can run successfully with root user, there is no need to run as "nobody". The ptest results are the same. (From OE-Core rev: c20a5f83e9f0483f5458513eeaaec60436dd9d68) Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 5ab213178c011152e29dfb0a80251c5e5ab79900) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xmeta/recipes-devtools/strace/strace/run-ptest6
1 files changed, 1 insertions, 5 deletions
diff --git a/meta/recipes-devtools/strace/strace/run-ptest b/meta/recipes-devtools/strace/strace/run-ptest
index 02bb91e07f..86daed9220 100755
--- a/meta/recipes-devtools/strace/strace/run-ptest
+++ b/meta/recipes-devtools/strace/strace/run-ptest
@@ -3,11 +3,7 @@
3set -u 3set -u
4 4
5export TIMEOUT_DURATION=240 5export TIMEOUT_DURATION=240
6chown nobody tests 6make -B -C tests -k test-suite.log
7chown nobody tests/*
8chown nobody ../ptest
9
10su nobody -c "make -B -C tests -k test-suite.log"
11res=$? 7res=$?
12if [ $res -ne 0 ]; then 8if [ $res -ne 0 ]; then
13 cat tests/test-suite.log 9 cat tests/test-suite.log