]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
parted: set VERSION number same as recipe's version
authorAjay M <ajay.gju@gmail.com>
Wed, 19 Aug 2015 06:49:46 +0000 (12:19 +0530)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Aug 2015 22:43:25 +0000 (23:43 +0100)
There is a parameter VERSION in workdir Makefile which tells the version
number of parted. While running ptest for parted we are getting failure because
of VERSION mismatch

--snip--
root@qemux86:/usr/lib/parted/ptest# ./run-ptest
make: Entering directory '/usr/lib/parted/ptest/tests'
make[1]: Entering directory '/usr/lib/parted/ptest/tests'
help-version.sh: failed test: --version-$VERSION mismatch
FAIL: help-version.sh
--CUT--

[YOCTO #8172]

Signed-off-by: Ajay M <ajay.gju@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-extended/parted/parted_3.2.bb

index 5d34749b010385d2b2394539a92bf46bc733cd07..ff8ae097cc399beb8565e3205cf9fb0a73fc84d0 100644 (file)
@@ -36,6 +36,7 @@ do_install_ptest() {
        cp ${S}/build-aux/test-driver $t/build-aux/
        cp -r ${S}/tests $t
        cp ${WORKDIR}/Makefile $t/tests/
+       sed -i "s|^VERSION.*|VERSION = ${PV}|g" $t/tests/Makefile
        for i in print-align print-max dup-clobber duplicate fs-resize; \
          do cp ${B}/tests/.libs/$i $t/tests/; \
        done