public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] curl-v8.23.0-3: tests/non-root-user-download: fix test failures
@ 2026-11-03 12:38
0 siblings, 0 replies; only message in thread
From: @ 2026-11-03 12:38 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.23.0-3
Commit : dd6ee45b2d117994b2b6922f8b1251c5c1b2c344
Author : Lukáš Zaoral <lzaoral@redhat.com>
Date : 2022-05-12T10:15:57+02:00
Stats : +9/-6 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/dd6ee45b2d117994b2b6922f8b1251c5c1b2c344?branch=curl-v8.23.0-3
Log:
tests/non-root-user-download: fix test failures
---
diff --git a/tests/non-root-user-download/main.fmf b/tests/non-root-user-download/main.fmf
index 15c0c12..2e3980f 100644
--- a/tests/non-root-user-download/main.fmf
+++ b/tests/non-root-user-download/main.fmf
@@ -7,6 +7,7 @@ require:
- findutils
- libselinux-utils
- openssh-clients
+ - openssh-server
- passwd
test: ./runtest.sh
framework: beakerlib
diff --git a/tests/non-root-user-download/runtest.sh b/tests/non-root-user-download/runtest.sh
index fd5f375..0529a12 100755
--- a/tests/non-root-user-download/runtest.sh
+++ b/tests/non-root-user-download/runtest.sh
@@ -31,9 +31,9 @@
PACKAGE="curl"
-FTP_URL=ftp://ftp.scientificlinux.org/linux/fedora/releases/18/Live/x86_64/Fedora-18-x86_64-Live-CHECKSUM
-HTTP_URL=https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/18/Live/x86_64/Fedora-18-x86_64-Live-CHECKSUM
-CONTENT=a276e06d244e04b765f0a35532d9036ad84f340b0bdcc32e0233a8fbc31d5bed
+FTP_URL=ftp://ftp.fi.muni.cz/pub/linux/fedora/linux/releases/36/Everything/x86_64/iso/Fedora-Everything-36-1.5-x86_64-CHECKSUM
+HTTP_URL=https://archives.fedoraproject.org/pub/fedora/linux/releases/36/Everything/x86_64/iso/Fedora-Everything-36-1.5-x86_64-CHECKSUM
+CONTENT=85cb450443d68d513b41e57b0bd818a740279dac5dfc09c68e681ff8a3006404
PASSWORD=pAssw0rd
OPTIONS=""
rlIsRHEL 7 && OPTIONS="--insecure"
@@ -46,9 +46,11 @@ rlJournalStart
rlRun "useradd -m curltester" 0 "Adding the test user"
rlRun "echo $PASSWORD | passwd --stdin curltester" 0 "Setting the password for the test user"
rlRun "su - curltester -c 'echo $CONTENT > ~/testfile'" 0 "Creating ~curltester/testfile"
+ rlFileBackup --clean --missing-ok $HOME/.ssh /etc/hosts
+ rlRun "rm -f $HOME/.ssh/*"
[ -d $HOME/.ssh ] || ( mkdir $HOME/.ssh && restorecon HOME/.ssh )
- rlFileBackup $HOME/.ssh/known_hosts /etc/hosts
- ssh-keygen -F localhost -f $HOME/.ssh/known_hosts || rlRun "ssh-keyscan localhost >> $HOME/.ssh/known_hosts"
+ rlRun "rlServiceStart sshd"
+ rlRun "ssh-keyscan localhost >> $HOME/.ssh/known_hosts"
rlPhaseEnd
rlPhaseStartTest "http download"
@@ -81,7 +83,7 @@ if ! rlIsRHEL 5; then
fi
rlPhaseStartCleanup
- rlRun "rm -f $HOME/.ssh/known_hosts"
+ rlRun "rlServiceRestore"
rlFileRestore
rlRun "popd"
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-03 12:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 12:38 [rpms/curl] curl-v8.23.0-3: tests/non-root-user-download: fix test failures
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox