diff options
3 files changed, 70 insertions, 1 deletions
diff --git a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/03ee1f8aa0899268ec02b2f54849352df92a3a1d.patch b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/03ee1f8aa0899268ec02b2f54849352df92a3a1d.patch new file mode 100644 index 0000000000..63cdc57b44 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/03ee1f8aa0899268ec02b2f54849352df92a3a1d.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From 03ee1f8aa0899268ec02b2f54849352df92a3a1d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Gabriel Staples <ercaguy@gmail.com> | ||
| 3 | Date: Tue, 22 Dec 2020 23:33:55 -0800 | ||
| 4 | Subject: [PATCH] pytest.ini: fix test warning | ||
| 5 | |||
| 6 | Warning: | ||
| 7 | |||
| 8 | ``` | ||
| 9 | test/util.py:99 | ||
| 10 | sshfs/build/test/util.py:99: PytestUnknownMarkWarning: Unknown pytest.mark.uses_fuse - is this a typo? | ||
| 11 | You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html | ||
| 12 | return pytest.mark.uses_fuse() | ||
| 13 | ``` | ||
| 14 | |||
| 15 | References for the fix: | ||
| 16 | |||
| 17 | 1. https://stackoverflow.com/questions/60806473/pytestunknownmarkwarning-unknown-pytest-mark-xxx-is-this-a-typo/60813297#60813297 | ||
| 18 | 1. https://docs.pytest.org/en/stable/mark.html | ||
| 19 | |||
| 20 | Upstream-Status: Submitted [https://github.com/libfuse/sshfs/pull/238] | ||
| 21 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 22 | --- | ||
| 23 | test/pytest.ini | 2 ++ | ||
| 24 | 1 file changed, 2 insertions(+) | ||
| 25 | |||
| 26 | diff --git a/test/pytest.ini b/test/pytest.ini | ||
| 27 | index 95161546..7a7efed4 100644 | ||
| 28 | --- a/test/pytest.ini | ||
| 29 | +++ b/test/pytest.ini | ||
| 30 | @@ -1,2 +1,4 @@ | ||
| 31 | [pytest] | ||
| 32 | addopts = --verbose --assert=rewrite --tb=native -x -r a | ||
| 33 | +markers = | ||
| 34 | + uses_fuse | ||
diff --git a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/a1d58ae1be99571a88b8439b027abe6349b74658.patch b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/a1d58ae1be99571a88b8439b027abe6349b74658.patch new file mode 100644 index 0000000000..e76dbd5059 --- /dev/null +++ b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse/a1d58ae1be99571a88b8439b027abe6349b74658.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From a1d58ae1be99571a88b8439b027abe6349b74658 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Gabriel Staples <ercaguy@gmail.com> | ||
| 3 | Date: Tue, 22 Dec 2020 23:26:40 -0800 | ||
| 4 | Subject: [PATCH] Fix deprecated warning in conftest.py | ||
| 5 | |||
| 6 | ``` | ||
| 7 | test/conftest.py:66 | ||
| 8 | sshfs/build/test/conftest.py:66: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. | ||
| 9 | Use @pytest.fixture instead; they are the same. | ||
| 10 | @pytest.yield_fixture(autouse=True) | ||
| 11 | ``` | ||
| 12 | |||
| 13 | Upstream-Status: Submitted [https://github.com/libfuse/sshfs/pull/238] | ||
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 15 | --- | ||
| 16 | test/conftest.py | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/test/conftest.py b/test/conftest.py | ||
| 20 | index 70cd0c62..d58d45b2 100644 | ||
| 21 | --- a/test/conftest.py | ||
| 22 | +++ b/test/conftest.py | ||
| 23 | @@ -63,7 +63,7 @@ def register_output(self, pattern, count=1, flags=re.MULTILINE): | ||
| 24 | # relies on tests running sequential (i.e., don't dare to use e.g. the xdist | ||
| 25 | # plugin) | ||
| 26 | current_capfd = None | ||
| 27 | -@pytest.yield_fixture(autouse=True) | ||
| 28 | +@pytest.fixture(autouse=True) | ||
| 29 | def save_cap_fixtures(request, capfd): | ||
| 30 | global current_capfd | ||
| 31 | capfd.false_positives = [] | ||
diff --git a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb index c85483759e..5a926dac0c 100644 --- a/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb +++ b/meta-filesystems/recipes-filesystems/sshfs-fuse/sshfs-fuse_3.7.3.bb | |||
| @@ -5,7 +5,10 @@ LICENSE = "GPL-2.0-only" | |||
| 5 | DEPENDS = "glib-2.0 fuse3" | 5 | DEPENDS = "glib-2.0 fuse3" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 7 | 7 | ||
| 8 | SRC_URI = "git://github.com/libfuse/sshfs;branch=master;protocol=https" | 8 | SRC_URI = "git://github.com/libfuse/sshfs;branch=master;protocol=https \ |
| 9 | file://03ee1f8aa0899268ec02b2f54849352df92a3a1d.patch \ | ||
| 10 | file://a1d58ae1be99571a88b8439b027abe6349b74658.patch \ | ||
| 11 | " | ||
| 9 | SRCREV = "c91eb9a9a992f1a36c49a8e6f1146e45b5e1c8e7" | 12 | SRCREV = "c91eb9a9a992f1a36c49a8e6f1146e45b5e1c8e7" |
| 10 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
| 11 | 14 | ||
| @@ -18,6 +21,7 @@ SRC_URI += " \ | |||
| 18 | RDEPENDS:${PN}-ptest += " \ | 21 | RDEPENDS:${PN}-ptest += " \ |
| 19 | python3-pytest \ | 22 | python3-pytest \ |
| 20 | bash \ | 23 | bash \ |
| 24 | fuse \ | ||
| 21 | " | 25 | " |
| 22 | 26 | ||
| 23 | do_install_ptest() { | 27 | do_install_ptest() { |
