From ca73a311cf70dda10b89ccbe94821b783a24828d Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Tue, 10 Oct 2023 17:31:45 +0200 Subject: [PATCH] Don't use /dev/null --- Docker/OpenWrt/runTests.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Docker/OpenWrt/runTests.sh b/Docker/OpenWrt/runTests.sh index e69125696..1585da5d9 100755 --- a/Docker/OpenWrt/runTests.sh +++ b/Docker/OpenWrt/runTests.sh @@ -17,11 +17,11 @@ runCMD "ldd /lib/libustream-ssl.so" 0 # Remove after fixed upstream. runCMD "sed '\/src\/gz openwrt_kmods https:\/\/downloads.openwrt.org\/releases\/21.02-SNAPSHOT\/targets\/x86\/64\/kmods\/5.4.238-1-5a722da41bc36de95a7195be6fce1b45/s//#&/' -i /etc/opkg/distfeeds.conf" 0 runCMD "opkg update" 0 -runCMD "uclient-fetch -O /dev/null 'https://letsencrypt.org'" 0 +runCMD "uclient-fetch 'https://letsencrypt.org'" 0 # Negative tests -runCMD "uclient-fetch --ca-certificate=/dev/null -O /dev/null 'https://letsencrypt.org'" 5 -runCMD "uclient-fetch -O /dev/null 'https://self-signed.badssl.com/'" 5 -runCMD "uclient-fetch -O /dev/null 'https://untrusted-root.badssl.com/'" 5 -runCMD "uclient-fetch -O /dev/null 'https://expired.badssl.com/'" 5 +runCMD "uclient-fetch --ca-certificate=/dev/null 'https://letsencrypt.org'" 5 +runCMD "uclient-fetch 'https://self-signed.badssl.com/'" 5 +runCMD "uclient-fetch 'https://untrusted-root.badssl.com/'" 5 +runCMD "uclient-fetch 'https://expired.badssl.com/'" 5 echo "All tests passed."