Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
useless use of cat
John Hood committed 4 years ago
commit a918eca2de8cdf702a7bfbc134f994f0e8aa193b
parent 73dfd7f
1 file changed +4 -4
modified tests/frontend/add.sh
@@ -195,22 +195,22 @@ EOF
		-s exit:0 \
		pkg create -M test.ucl

-
	cat test-1.pkg | atf_check \
+
	atf_check \
		-o inline:"${JAILED}Installing test-1...\n\nFailed to install the following 1 package(s): -\n" \
		-e inline:"${PROGNAME}: Missing dependency 'b'\n" \
		-s exit:1 \
-
		pkg add -
+
		pkg add - < test-1.pkg

OUTPUT="${JAILED}Installing test-1...
pre-install
${JAILED}Extracting test-1:  done
post-install
"
-
	cat test-1.pkg | atf_check \
+
	atf_check \
		-o inline:"${OUTPUT}" \
		-e inline:"${PROGNAME}: Missing dependency 'b'\n" \
		-s exit:0 \
-
		pkg add -M -
+
		pkg add -M - < test-1.pkg
}

add_no_version_body() {