public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-asyncssh] rawhide: Fix build / tests against newer OpenSSH versions
Date: Mon, 30 Nov 2026 17:37:15 GMT [thread overview]
Message-ID: <179606023591.1.11402858288603686789.rpms-python-asyncssh-16021d36aac2@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-asyncssh
Branch : rawhide
Commit : 16021d36aac25b930ed9ec88939393991de89a87
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-11-30T12:51:01-03:00
Stats : +19/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-asyncssh/c/16021d36aac25b930ed9ec88939393991de89a87?branch=rawhide
Log:
Fix build / tests against newer OpenSSH versions
The exact scp error message for a missing direction argument varies
between OpenSSH versions, so accept both variants in the test.
Signed-off-by: Filipe Rosset <rosset.filipe@gmail.com>
---
diff --git a/python-asyncssh.spec b/python-asyncssh.spec
index e947082..fc41075 100644
--- a/python-asyncssh.spec
+++ b/python-asyncssh.spec
@@ -17,8 +17,11 @@ Source0: %pypi_source
# SHA1 for RSA signing, so skip the ssh-rsa / rsa1024-sha1 signature
# algorithms in the test when the backend cannot do them.
Patch0: openssl4-sha1.diff
-BuildArch: noarch
+# The exact scp error message for a missing direction argument varies
+# between OpenSSH versions, so accept both variants in the test.
+Patch1: scp-message.diff
+BuildArch: noarch
# required by unittests
BuildRequires: openssh-clients
BuildRequires: openssl
diff --git a/scp-message.diff b/scp-message.diff
new file mode 100644
index 0000000..e10bba6
--- /dev/null
+++ b/scp-message.diff
@@ -0,0 +1,15 @@
+--- a/tests/test_sftp.py 2026-11-27 19:19:30.485908300 -0300
++++ b/tests/test_sftp.py 2026-11-30 12:36:56.332169405 -0300
+@@ -6594,8 +6594,10 @@
+
+ async with self.connect() as conn:
+ result = await conn.run('scp xxx')
+- self.assertEqual(result.stderr, 'scp: one of the arguments -f -t '
+- 'is required\n')
++ # The exact message varies between OpenSSH versions
++ self.assertIn(result.stderr, (
++ 'scp: one of the arguments -f -t is required\n',
++ 'scp: one of the following arguments is required: -f, -t\n'))
+
+ @asynctest
+ async def test_invalid_argument(self):
reply other threads:[~2026-11-30 17:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179606023591.1.11402858288603686789.rpms-python-asyncssh-16021d36aac2@fedoraproject.org \
--to=rosset.filipe@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox