* [PATCH] strace: fix failing ptests
@ 2020-05-22 4:51 Anuj Mittal
2020-05-22 4:57 ` [OE-core] " Tim Orling
2020-05-22 5:02 ` ✗ patchtest: failure for " Patchwork
0 siblings, 2 replies; 4+ messages in thread
From: Anuj Mittal @ 2020-05-22 4:51 UTC (permalink / raw)
To: openembedded-core
From: Alexander Kanavin <alex.kanavin@gmail.com>
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 <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a5e90281ac211e912ec6bfd6873e56152ec8bd4e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
---
meta/recipes-devtools/strace/strace/Makefile-ptest.patch | 2 +-
meta/recipes-devtools/strace/strace/run-ptest | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
index 08fa5c53b8..36e93a2dcf 100644
--- a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
+++ b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
@@ -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
diff --git a/meta/recipes-devtools/strace/strace/run-ptest b/meta/recipes-devtools/strace/strace/run-ptest
index 2fed984e90..4660207220 100755
--- a/meta/recipes-devtools/strace/strace/run-ptest
+++ b/meta/recipes-devtools/strace/strace/run-ptest
@@ -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"
--
2.25.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [OE-core] [PATCH] strace: fix failing ptests
2020-05-22 4:51 [PATCH] strace: fix failing ptests Anuj Mittal
@ 2020-05-22 4:57 ` Tim Orling
2020-05-22 5:13 ` Anuj Mittal
2020-05-22 5:02 ` ✗ patchtest: failure for " Patchwork
1 sibling, 1 reply; 4+ messages in thread
From: Tim Orling @ 2020-05-22 4:57 UTC (permalink / raw)
To: Anuj Mittal; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 2206 bytes --]
Is this for Zeus?
On Thu, May 21, 2020 at 9:51 PM Anuj Mittal <anuj.mittal@intel.com> wrote:
> From: Alexander Kanavin <alex.kanavin@gmail.com>
>
> 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 <alex.kanavin@gmail.com>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> (cherry picked from commit a5e90281ac211e912ec6bfd6873e56152ec8bd4e)
> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
> ---
> meta/recipes-devtools/strace/strace/Makefile-ptest.patch | 2 +-
> meta/recipes-devtools/strace/strace/run-ptest | 7 +++++--
> 2 files changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
> b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
> index 08fa5c53b8..36e93a2dcf 100644
> --- a/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
> +++ b/meta/recipes-devtools/strace/strace/Makefile-ptest.patch
> @@ -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
> diff --git a/meta/recipes-devtools/strace/strace/run-ptest
> b/meta/recipes-devtools/strace/strace/run-ptest
> index 2fed984e90..4660207220 100755
> --- a/meta/recipes-devtools/strace/strace/run-ptest
> +++ b/meta/recipes-devtools/strace/strace/run-ptest
> @@ -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"
> --
> 2.25.4
>
>
>
[-- Attachment #2: Type: text/html, Size: 2924 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* ✗ patchtest: failure for strace: fix failing ptests
2020-05-22 4:51 [PATCH] strace: fix failing ptests Anuj Mittal
2020-05-22 4:57 ` [OE-core] " Tim Orling
@ 2020-05-22 5:02 ` Patchwork
1 sibling, 0 replies; 4+ messages in thread
From: Patchwork @ 2020-05-22 5:02 UTC (permalink / raw)
To: Anuj Mittal; +Cc: openembedded-core
== Series Details ==
Series: strace: fix failing ptests
Revision: 1
URL : https://patchwork.openembedded.org/series/24266/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:
* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at 8fc19639f4)
If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).
---
Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-05-22 5:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-22 4:51 [PATCH] strace: fix failing ptests Anuj Mittal
2020-05-22 4:57 ` [OE-core] " Tim Orling
2020-05-22 5:13 ` Anuj Mittal
2020-05-22 5:02 ` ✗ patchtest: failure for " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox