* [PATCH] tests: libmount: skip tabfiles-py when pylibmount is disabled
@ 2013-12-23 0:01 Mike Frysinger
2014-01-06 11:52 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2013-12-23 0:01 UTC (permalink / raw)
To: util-linux
The default configure disables python support, so this test fails by
default. Add a simple check for module availability.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
tests/ts/libmount/tabfiles-py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/ts/libmount/tabfiles-py b/tests/ts/libmount/tabfiles-py
index 64e8911..b89fb5b 100755
--- a/tests/ts/libmount/tabfiles-py
+++ b/tests/ts/libmount/tabfiles-py
@@ -12,6 +12,8 @@ ts_init_py libmount
PYDBG="$PYTHON -m pdb"
TESTPROG="$TS_HELPER_PYLIBMOUNT_TAB"
+$PYTHON -c 'import libmount' 2>/dev/null || ts_skip "pylibmount not compiled"
+
ts_init_subtest "parse-fstab"
$PYTHON $TESTPROG --parse "$TS_SELF/files/fstab" &> $TS_OUTPUT
sed -i -e 's/fs: 0x.*/fs:/g' $TS_OUTPUT
--
1.8.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tests: libmount: skip tabfiles-py when pylibmount is disabled
2013-12-23 0:01 [PATCH] tests: libmount: skip tabfiles-py when pylibmount is disabled Mike Frysinger
@ 2014-01-06 11:52 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2014-01-06 11:52 UTC (permalink / raw)
To: Mike Frysinger; +Cc: util-linux
On Sun, Dec 22, 2013 at 07:01:32PM -0500, Mike Frysinger wrote:
> The default configure disables python support, so this test fails by
> default. Add a simple check for module availability.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> tests/ts/libmount/tabfiles-py | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/ts/libmount/tabfiles-py b/tests/ts/libmount/tabfiles-py
> index 64e8911..b89fb5b 100755
> --- a/tests/ts/libmount/tabfiles-py
> +++ b/tests/ts/libmount/tabfiles-py
> @@ -12,6 +12,8 @@ ts_init_py libmount
> PYDBG="$PYTHON -m pdb"
> TESTPROG="$TS_HELPER_PYLIBMOUNT_TAB"
>
> +$PYTHON -c 'import libmount' 2>/dev/null || ts_skip "pylibmount not compiled"
> +
Hmm... in function ts_init_py() is
[ -f "$TS_TOPDIR/../py${LIBNAME}.la" ] || ts_skip "py${LIBNAME} not compiled"
and it works for me:
$ ./ts/libmount/tabfiles-py te libmount: tab files-py... IGNORE (pylibmount not compiled)
fixed by:
commit f48145b500cc214746ae5dca997098ad22f41ead
Author: Karel Zak <kzak@redhat.com>
Date: Thu Oct 3 16:20:38 2013 +0200
testsL fix py<libname> check
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-06 11:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-23 0:01 [PATCH] tests: libmount: skip tabfiles-py when pylibmount is disabled Mike Frysinger
2014-01-06 11:52 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox