strace: fix failing ptests
PATCH 1/1 strace: fix failing ptests
From: Alexander Kanavin <[email protected]>
1. They need to be run under regular user.
2. Some tests genuinely need more time than 30 seconds
3. The Makefile patch erroneously introduced a test-breaking change.
(From OE-Core rev: 3d6bf58c7080c1cacf3ed1f270ff5acf4858c790)
Signed-off-by Alexander Kanavin <[email protected]>
Signed-off-by Richard Purdie <[email protected]>
(cherry picked from commit a5e90281ac211e912ec6bfd6873e56152ec8bd4e)
Signed-off-by Anuj Mittal <[email protected]>
--- meta/recipes-devtools/strace/strace/Makefile-ptest.patch | 2 +- meta/recipes-devtools/strace/strace/run-ptest | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-)
meta/recipes-devtools/strace/strace/Makefile-ptest.patch +1 -1
@@ -44,6 +44,6 @@ index 825c989..4623c48 100644 + done + for file in $(EXTRA_DIST); do \ + install $(srcdir)/$$file $(DESTDIR)/$(TESTDIR); \ -+ sed -i -e 's/$${srcdir=.}/./g' $(DESTDIR)/$(TESTDIR)/$$file; \ ++ #sed -i -e 's/$${srcdir=.}/./g' $(DESTDIR)/$(TESTDIR)/$$file; \ + done + for i in net scm_rights-fd rt_sigaction; do sed -i -e 's/$$srcdir/./g' $(DESTDIR)/$(TESTDIR)/$$i.test; done
meta/recipes-devtools/strace/strace/run-ptest +5 -2
@@ -1,3 +1,6 @@ #!/bin/sh -export TIMEOUT_DURATION=30 -make -B -C tests -k test-suite.log +export TIMEOUT_DURATION=120 +chown nobody tests +chown nobody tests/* +chown nobody ../ptest +su nobody -c "make -B -C tests -k test-suite.log"
Signature · 1 line
2.25.4