summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-admin/lnav/files/lnav-0.8.3-disable-tests.patch32
-rw-r--r--app-admin/lnav/lnav-0.8.3.ebuild9
2 files changed, 33 insertions, 8 deletions
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
index 000000000000..1f442afc3fdd
--- /dev/null
+++ b/app-admin/lnav/files/lnav-0.8.3-disable-tests.patch
@@ -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 += \
diff --git a/app-admin/lnav/lnav-0.8.3.ebuild b/app-admin/lnav/lnav-0.8.3.ebuild
index 5a47db6dfcb1..4cc902a0eb99 100644
--- a/app-admin/lnav/lnav-0.8.3.ebuild
+++ b/app-admin/lnav/lnav-0.8.3.ebuild
@@ -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
}