]> code.ossystems Code Review - openembedded-core.git/commitdiff
strace: fix failing ptests
authorAlexander Kanavin <alex.kanavin@gmail.com>
Tue, 14 Jan 2020 14:00:06 +0000 (15:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Jan 2020 22:21:31 +0000 (22:21 +0000)
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.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/strace/strace/Makefile-ptest.patch
meta/recipes-devtools/strace/strace/run-ptest

index 2437d1fb6d01198162ca633fd31f149f7f373e8d..1f01ef79f252429786a1f213b23afd6f2ea8c86b 100644 (file)
@@ -42,6 +42,6 @@ Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
 +      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
index 2fed984e901735f80972a621f0cb6116ef7834f5..4660207220bf2b5dd77867966f0d2932f6550cc3 100755 (executable)
@@ -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"