Bug 8062 - ptest - quilt ptest is broken - has many failures
Summary: ptest - quilt ptest is broken - has many failures
Status: RESOLVED FIXED
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 1.9
Hardware: NUC Multiple
: Medium normal
Target Milestone: 1.9
Assignee: Maxin B. John (inactive)
QA Contact: Alexandru Georgescu
URL:
Whiteboard:
Depends on:
Blocks: 9119
  Show dependency tree
 
Reported: 2015-07-28 11:07 UTC by Alexandru Georgescu
Modified: 2016-02-15 17:08 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandru Georgescu 2015-07-28 11:07:25 UTC
commit: f9ea480e6c26fea46c3011c4e9d0e2de3d5c81b4
AB Link: http://autobuilder.yoctoproject.org/pub/releases/yocto-yocto-1.9_M1.rc2/ptest/machines/genericx86-64/

HW: core-image-sato-sdk-genericx86-64 on NUC

For full log, see attachment 2605 [details]:

2015-07-22T16:32
BEGIN: /usr/lib/quilt/ptest
[add-filename-check.test]
[1] $ mkdir patches -- ok
[3] $ quilt new test.diff -- failed
/usr/lib/quilt/ptest/quilt/new: line 48: getopt: command not found != Patch patches/test.diff is now on top
Usage: quilt new [-p n|-p ab] {patchname} != ~
[6] $ echo foo > foo -- ok
[7] $ quilt add foo -- failed
/usr/lib/quilt/ptest/quilt/add: line 63: getopt: command not found != File foo added to patch patches/test.diff
Usage: quilt add [-P patch] {file} ... != ~
[10] $ quilt add patches/bar -- failed
/usr/lib/quilt/ptest/quilt/add: line 63: getopt: command not found != File patches/bar is located below patches/
Usage: quilt add [-P patch] {file} ... != ~
[13] $ quilt add .pc/baz -- failed
/usr/lib/quilt/ptest/quilt/add: line 63: getopt: command not found != File .pc/baz is located below .pc/
Usage: quilt add [-P patch] {file} ... != ~
6 commands (2 passed, 4 failed)
Makefile:9: recipe for target 'check-add-filename-check' failed
FAIL: add-filename-check.test
[altered-series.test]
[3] $ mkdir patches -- ok
[4] $ cat > patches/series -- ok
[9] $ quilt push -q 2 -- failed
/usr/lib/quilt/ptest/quilt/push: line 299: getopt: command not found != Applying patch patches/01.patch
Usage: quilt push [-afqv] [--merge[=merge|diff3]] [--leave-rejects] [--color[=always|auto|never]] [--refresh] [num|patch] != Patch patches/01.patch does not exist; applied empty patch
~                                     != Applying patch patches/02.patch
~                                     != Patch patches/02.patch does not exist; applied empty patch
~                                     != Now at patch patches/02.patch
[16] $ quilt series -v -- failed
/usr/lib/quilt/ptest/quilt/series: line 50: getopt: command not found != + patches/01.patch
Usage: quilt series [--color[=always|auto|never]] [-v] != = patches/02.patch
~                                     !=   patches/03.patch
[22] $ touch patches/series -- ok
[24] $ quilt series -v -- failed
/usr/lib/quilt/ptest/quilt/series: line 50: getopt: command not found != + patches/01.patch
Usage: quilt series [--color[=always|auto|never]] [-v] != = patches/02.patch
~                                     !=   patches/03.patch
[30] $ cat > patches/series -- ok
[35] $ quilt series -v -- failed
/usr/lib/quilt/ptest/quilt/series: line 50: getopt: command not found != The series file no longer matches the applied patches. Please run 'quilt pop -a'.
Usage: quilt series [--color[=always|auto|never]] [-v] != ~
[38] $ quilt pop -- failed
/usr/lib/quilt/ptest/quilt/pop: line 169: getopt: command not found != Patch patches/02.patch appears to be empty, removing
Usage: quilt pop [-afRqv] [--refresh] [num|patch] !=
~                                     != Now at patch patches/01.patch
[44] $ quilt series -v -- failed
/usr/lib/quilt/ptest/quilt/series: line 50: getopt: command not found != The series file no longer matches the applied patches. Please run 'quilt pop -a'.
Usage: quilt series [--color[=always|auto|never]] [-v] != ~
[47] $ quilt pop -a -- failed
/usr/lib/quilt/ptest/quilt/pop: line 169: getopt: command not found != Patch patches/01.patch appears to be empty, removing
Usage: quilt pop [-afRqv] [--refresh] [num|patch] !=
~                                     != No patches applied
[52] $ quilt series -v -- failed
/usr/lib/quilt/ptest/quilt/series: line 50: getopt: command not found !=   patches/03.patch
Usage: quilt series [--color[=always|auto|never]] [-v] !=   patches/01.patch
~                                     !=   patches/02.patch
12 commands (4 passed, 8 failed)
Makefile:9: recipe for target 'check-altered-series' failed
FAIL: altered-series.test
[annotate.test]
[1] $ mkdir patches -- ok
[3] $ cat > foo -- ok
[8] $ quilt new patch -- failed
/usr/lib/quilt/ptest/quilt/new: line 48: getopt: command not found != Patch patches/patch is now on top
Usage: quilt new [-p n|-p ab] {patchname} != ~
[11] $ quilt add foo -- failed
/usr/lib/quilt/ptest/quilt/add: line 63: getopt: command not found != File foo added to patch patches/patch
Usage: quilt add [-P patch] {file} ... != ~
[14] $ sed -e 's:b:B:' foo > foo.new -- ok
[15] $ mv foo.new foo -- ok
[16] $ quilt refresh -- failed
/usr/lib/quilt/ptest/quilt/refresh: line 92: getopt: command not found != Refreshed patch patches/patch
Usage: quilt refresh [-p n|-p ab] [-u|-U num|-c|-C num] [-z[new_name]] [-f] [--no-timestamps] [--no-index] [--diffstat] [--sort] [--backup] [--strip-trailing-whitespace] [patch] != ~
[19] $ quilt annotate foo -- failed
/usr/lib/quilt/ptest/quilt/annotate: line 88: getopt: command not found !=      foo
Usage: quilt annotate [-P patch] {file} != 1    Bar
~                                     != 1      Baz
~                                     !=
~                                     != 1      patches/patch
[26] $ quilt new patch2 -- failed
/usr/lib/quilt/ptest/quilt/new: line 48: getopt: command not found != Patch patches/patch2 is now on top
Usage: quilt new [-p n|-p ab] {patchname} != ~
[29] $ quilt add foo -- failed
/usr/lib/quilt/ptest/quilt/add: line 63: getopt: command not found != File foo added to patch patches/patch2
Usage: quilt add [-P patch] {file} ... != ~
[32] $ sed -e 's:Baz:baz:' foo > foo.new -- ok
[33] $ mv foo.new foo -- ok
[34] $ quilt refresh -- failed
/usr/lib/quilt/ptest/quilt/refresh: line 92: getopt: command not found != Refreshed patch patches/patch2
Usage: quilt refresh [-p n|-p ab] [-u|-U num|-c|-C num] [-z[new_name]] [-f] [--no-timestamps] [--no-index] [--diffstat] [--sort] [--backup] [--strip-trailing-whitespace] [patch] != ~
[37] $ quilt annotate foo -- failed
/usr/lib/quilt/ptest/quilt/annotate: line 88: getopt: command not found !=      foo
Usage: quilt annotate [-P patch] {file} != 1    Bar
~                                     != 2      baz
~                                     !=
~                                     != 1      patches/patch
~                                     != 2      patches/patch2
[45] $ quilt new patch3 -- failed
/usr/lib/quilt/ptest/quilt/new: line 48: getopt: command not found != Patch patches/patch3 is now on top
Comment 1 Alexandru Georgescu 2015-08-05 15:51:57 UTC
Same issues present in 1.9_M2.rc1
22078d5e533e59a9aa6999abefbf6ece4e01de8d
Comment 2 Maxin B. John (inactive) 2015-08-13 15:36:43 UTC
Additional package requirements of quilt ptest can be resolved with the following patch:

diff --git a/meta/recipes-devtools/quilt/quilt.inc b/meta/recipes-devtools/quilt/quilt.inc
index ac7ef93..837b36b 100644
--- a/meta/recipes-devtools/quilt/quilt.inc
+++ b/meta/recipes-devtools/quilt/quilt.inc
@@ -57,5 +57,6 @@ do_install_ptest() {
 RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \
                         perl-module-filehandle perl-module-getopt-std \
                         perl-module-posix perl-module-file-temp \
-                        perl-module-text-parsewords bash \
-"
+                        perl-module-text-parsewords perl-module-overloading \
+                        bash util-linux-getopt \
+                       "
1|majo@sestofb10:/media/data/fb/majo/master/poky/build
Comment 4 Maxin B. John (inactive) 2015-08-16 22:59:20 UTC
Fix accepted upstream:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a25e8bd47a654e5cc03d92f471e1e817c66f96c7