app-admin/lnav: disable another failing test
authorTim Harder <radhermit@gentoo.org>
Mon, 19 Mar 2018 20:16:28 +0000 (16:16 -0400)
committerTim Harder <radhermit@gentoo.org>
Mon, 19 Mar 2018 20:17:48 +0000 (16:17 -0400)
Closes: https://bugs.gentoo.org/630916

app-admin/lnav/files/lnav-0.8.3-disable-tests.patch [new file with mode: 0644]
app-admin/lnav/lnav-0.8.3.ebuild

diff --git a/app-admin/lnav/files/lnav-0.8.3-disable-tests.patch b/app-admin/lnav/files/lnav-0.8.3-disable-tests.patch
new file mode 100644 (file)
index 0000000..1f442af
--- /dev/null
@@ -0,0 +1,32 @@
+Disable failing tests for bug #630916.
+
+--- lnav-0.8.3/test/Makefile.am
++++ lnav-0.8.3/test/Makefile.am
+@@ -374,7 +374,6 @@
+       test_concise \
+       test_line_buffer2 \
+       test_line_buffer.sh \
+-      test_listview.sh \
+       test_grep_proc.sh \
+       test_grep_proc2 \
+       test_hist_source \
+@@ -388,18 +387,15 @@
+       test_scripts.sh \
+       test_sessions.sh \
+       test_shlexer.sh \
+-      test_sql.sh \
+       test_sql_coll_func.sh \
+       test_sql_json_func.sh \
+       test_sql_fs_func.sh \
+       test_sql_str_func.sh \
+       test_sql_time_func.sh \
+-      test_view_colors.sh \
+       test_vt52_curses.sh \
+       test_top_status \
+       test_data_parser.sh \
+-      test_yajlpp \
+-      test_pretty_print.sh
++      test_yajlpp
+ if HAVE_LIBCURL
+ TESTS += \
index 5a47db6dfcb1e5ac3b1d1a82a15889f6f3e4d079..4cc902a0eb99c6c3ccd732224955f860428bb43f 100644 (file)
@@ -25,17 +25,10 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 
 DOCS=( AUTHORS NEWS README )
+PATCHES=( "${FILESDIR}"/${P}-disable-tests.patch )
 
 src_prepare() {
        default
-
-       # skip failing tests
-       sed -i \
-               -e '/test_listview\.sh/d' \
-               -e '/test_view_colors\.sh/d' \
-               -e '/test_sql\.sh/d' \
-               test/Makefile.am || die
-
        eautoreconf
 }