1 |
commit: dffcabb1fe3e9bd7145211397da23e182c97d2b4 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 21 11:53:40 2021 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 21 11:54:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dffcabb1 |
7 |
|
8 |
app-shells/fish: enable py3.10, fix failing tests |
9 |
|
10 |
we remove terminal.py pexpect test because it's |
11 |
very fragile and depends on test environment |
12 |
|
13 |
Closes: https://bugs.gentoo.org/821559 |
14 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
15 |
|
16 |
app-shells/fish/files/3.3.1-drop-some-tests.patch | 26 +++++++++++++++++++++++ |
17 |
app-shells/fish/fish-3.3.1-r1.ebuild | 10 ++++++++- |
18 |
2 files changed, 35 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/app-shells/fish/files/3.3.1-drop-some-tests.patch b/app-shells/fish/files/3.3.1-drop-some-tests.patch |
21 |
new file mode 100644 |
22 |
index 000000000000..4c4081d77cfa |
23 |
--- /dev/null |
24 |
+++ b/app-shells/fish/files/3.3.1-drop-some-tests.patch |
25 |
@@ -0,0 +1,26 @@ |
26 |
+From ec8844d834cc9fe626e9fc326c6f5410341d532a Mon Sep 17 00:00:00 2001 |
27 |
+From: Fabian Homborg <FHomborg@×××××.com> |
28 |
+Date: Thu, 14 Oct 2021 18:18:51 +0200 |
29 |
+Subject: [PATCH] Drop tests with resetting match start inside lookaround |
30 |
+ |
31 |
+This seems to be of little use |
32 |
+ |
33 |
+Fixes #8353 |
34 |
+--- |
35 |
+ src/fish_tests.cpp | 5 ----- |
36 |
+ 1 file changed, 5 deletions(-) |
37 |
+ |
38 |
+diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp |
39 |
+index 3d71877de81..04058b47ba7 100644 |
40 |
+--- a/src/fish_tests.cpp |
41 |
++++ b/src/fish_tests.cpp |
42 |
+@@ -5723,9 +5723,6 @@ static void test_string() { |
43 |
+ {{L"string", L"match", L"-r", L"-a", L"a*", L"b", 0}, STATUS_CMD_OK, L"\n\n"}, |
44 |
+ {{L"string", L"match", L"-r", L"foo\\Kbar", L"foobar", 0}, STATUS_CMD_OK, L"bar\n"}, |
45 |
+ {{L"string", L"match", L"-r", L"(foo)\\Kbar", L"foobar", 0}, STATUS_CMD_OK, L"bar\nfoo\n"}, |
46 |
+- {{L"string", L"match", L"-r", L"(?=ab\\K)", L"ab", 0}, STATUS_CMD_OK, L"\n"}, |
47 |
+- {{L"string", L"match", L"-r", L"(?=ab\\K)..(?=cd\\K)", L"abcd", 0}, STATUS_CMD_OK, L"\n"}, |
48 |
+- |
49 |
+ {{L"string", L"replace", 0}, STATUS_INVALID_ARGS, L""}, |
50 |
+ {{L"string", L"replace", L"", 0}, STATUS_INVALID_ARGS, L""}, |
51 |
+ {{L"string", L"replace", L"", L"", 0}, STATUS_CMD_ERROR, L""}, |
52 |
|
53 |
diff --git a/app-shells/fish/fish-3.3.1-r1.ebuild b/app-shells/fish/fish-3.3.1-r1.ebuild |
54 |
index e24e0866494f..0b5e029e2e55 100644 |
55 |
--- a/app-shells/fish/fish-3.3.1-r1.ebuild |
56 |
+++ b/app-shells/fish/fish-3.3.1-r1.ebuild |
57 |
@@ -3,7 +3,7 @@ |
58 |
|
59 |
EAPI=7 |
60 |
|
61 |
-PYTHON_COMPAT=( python3_{7..9} ) |
62 |
+PYTHON_COMPAT=( python3_{7..10} ) |
63 |
|
64 |
inherit cmake python-any-r1 readme.gentoo-r1 |
65 |
|
66 |
@@ -30,6 +30,7 @@ RESTRICT="!test? ( test )" |
67 |
PATCHES=( |
68 |
"${FILESDIR}/3.3.1-don-t-override-linker.patch" |
69 |
"${FILESDIR}/3.3.1-sbin-path-sh-test.patch" |
70 |
+ "${FILESDIR}/3.3.1-drop-some-tests.patch" |
71 |
) |
72 |
|
73 |
RDEPEND=" |
74 |
@@ -86,6 +87,13 @@ src_install() { |
75 |
} |
76 |
|
77 |
src_test() { |
78 |
+ # some tests are fragile, sanitize environment |
79 |
+ local -x COLUMNS=80 |
80 |
+ local -X LINES=24 |
81 |
+ |
82 |
+ # very fragile, depends on terminal, size, tmux, screen and timing |
83 |
+ rm -v tests/pexpects/terminal.py || die |
84 |
+ |
85 |
cmake_build test |
86 |
} |