From 34a77f7822126263fed5c72aedaa65b58fee94ac Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 07 Dec 2015 12:07:15 -0500 Subject: Merge branch 'feature/use-shld' --- (limited to 'tests/parse_control.common.sh') diff --git a/tests/parse_control.common.sh b/tests/parse_control.common.sh index 1549ae0..9eee27b 100644 --- a/tests/parse_control.common.sh +++ b/tests/parse_control.common.sh @@ -18,11 +18,6 @@ # along with the ProteanOS Development Kit. If not, see # . -. "${srcdir}/tests/common.sh" - -use output -use control - load_locale HT=' ' @@ -41,10 +36,15 @@ para() test_results="${test_results}ΒΆ${LF}" } -parse_control - field para "${req_fields}" <<-EOF - ${packages} - EOF +main() +{ + parse_control - field para "${req_fields}" <<-EOF + ${packages} + EOF -printf 'Required fields: %s\n\n' "${req_fields}" + printf 'Required fields: %s\n\n' "${req_fields}" -test_diff "${results}" "${test_results}" + test_diff "${results}" "${test_results}" + + return 0 +} -- cgit v0.9.1