* [PATCH 0/1] quilt: fix ptest faildiff.test failed
@ 2016-03-08 12:11 Dengke Du
2016-03-08 12:11 ` [PATCH 1/1] " Dengke Du
0 siblings, 1 reply; 4+ messages in thread
From: Dengke Du @ 2016-03-08 12:11 UTC (permalink / raw)
Cc: openembedded-core
The following changes since commit 7d409ffb1e0a26b196e5ab7e69fec87f7467d5f6:
pTest-tcl fail fixed (2016-03-02 23:28:51 -0500)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib dengke/pTest-quilt-fail-fixed
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=dengke/pTest-quilt-fail-fixed
Dengke Du (1):
quilt: fix ptest faildiff.test failed
meta/recipes-devtools/quilt/quilt/run-ptest | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
1.9.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] quilt: fix ptest faildiff.test failed
2016-03-08 12:11 [PATCH 0/1] quilt: fix ptest faildiff.test failed Dengke Du
@ 2016-03-08 12:11 ` Dengke Du
2016-03-08 15:08 ` Burton, Ross
0 siblings, 1 reply; 4+ messages in thread
From: Dengke Du @ 2016-03-08 12:11 UTC (permalink / raw)
Cc: openembedded-core
When run the quilt ptest on the target, the faildiff.test failed,
because the user is root. The faildiff.test had the following:
$ chmod -r test.txt
$ quilt refresh
when we drop the read permission of the file test.txt, we can't
"quilt refresh" as normal user, so we got the following:
>~ .*diff: test\.txt: Permission denied
> Diff failed on file 'test.txt', aborting
But when the user is root, we can access the file, so we get the
following:
> Nothing in patch patches/test.diff
So I change the file "meta/recipes-devtools/quilt/quilt/run-ptest",
when it meet the faildiff.test it skipped. I will report this bug to
quilt upstream.
Signed-off-by: Dengke Du <dengke.du@windriver.com>
---
meta/recipes-devtools/quilt/quilt/run-ptest | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/quilt/quilt/run-ptest b/meta/recipes-devtools/quilt/quilt/run-ptest
index 958a9df..d5ae8f4 100755
--- a/meta/recipes-devtools/quilt/quilt/run-ptest
+++ b/meta/recipes-devtools/quilt/quilt/run-ptest
@@ -1,5 +1,5 @@
#!/bin/sh
ln -sf /bin/ed /usr/bin/ed
-for i in `ls test/*.test |awk -F. '{print $1}' |awk -F/ '{print $2}'`; do make check-$i; if [ $? -eq 0 ]; then echo PASS: $i.test; else echo FAIL: $i.test; fi; done
+for i in `ls test/*.test |awk -F. '{print $1}' |awk -F/ '{print $2}'`; do if [ "$i" == "faildiff" ]; then echo SKIPPED: $i.test; else make check-$i; if [ $? -eq 0 ]; then echo PASS: $i.test; else echo FAIL: $i.test; fi; fi; done
rm -f /usr/bin/ed
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] quilt: fix ptest faildiff.test failed
2016-03-08 12:11 ` [PATCH 1/1] " Dengke Du
@ 2016-03-08 15:08 ` Burton, Ross
2016-03-16 9:54 ` dengke.du
0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2016-03-08 15:08 UTC (permalink / raw)
To: Dengke Du; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 412 bytes --]
On 8 March 2016 at 12:11, Dengke Du <dengke.du@windriver.com> wrote:
> So I change the file "meta/recipes-devtools/quilt/quilt/run-ptest",
> when it meet the faildiff.test it skipped. I will report this bug to
> quilt upstream.
>
We're seeing a number of tests that expect to run as a non-root user.
Maybe ptest-runner should create a ptest user and run the test suites as
that user instead?
Ross
[-- Attachment #2: Type: text/html, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] quilt: fix ptest faildiff.test failed
2016-03-08 15:08 ` Burton, Ross
@ 2016-03-16 9:54 ` dengke.du
0 siblings, 0 replies; 4+ messages in thread
From: dengke.du @ 2016-03-16 9:54 UTC (permalink / raw)
To: Burton, Ross; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 568 bytes --]
OK, it's a good idea!
//dengke
On 2016年03月08日 23:08, Burton, Ross wrote:
>
> On 8 March 2016 at 12:11, Dengke Du <dengke.du@windriver.com
> <mailto:dengke.du@windriver.com>> wrote:
>
> So I change the file "meta/recipes-devtools/quilt/quilt/run-ptest",
> when it meet the faildiff.test it skipped. I will report this bug to
> quilt upstream.
>
>
> We're seeing a number of tests that expect to run as a non-root user.
> Maybe ptest-runner should create a ptest user and run the test suites
> as that user instead?
>
> Ross
[-- Attachment #2: Type: text/html, Size: 1714 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-03-16 9:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-08 12:11 [PATCH 0/1] quilt: fix ptest faildiff.test failed Dengke Du
2016-03-08 12:11 ` [PATCH 1/1] " Dengke Du
2016-03-08 15:08 ` Burton, Ross
2016-03-16 9:54 ` dengke.du
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox