tests: Create new function to launch tests

Move the calls to the individual distro tests into a separate
function called from `main()`.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2018-07-25 09:46:49 +01:00
parent f077e6efdc
commit 80e1997721

View File

@ -347,10 +347,8 @@ test_distro_alpine()
run_test "${name}" "" "alpine" "no" "init" run_test "${name}" "" "alpine" "no" "init"
} }
main() test_all_distros()
{ {
setup
test_distro_fedora test_distro_fedora
test_distro_centos test_distro_centos
test_distro_alpine test_distro_alpine
@ -364,4 +362,11 @@ main()
fi fi
} }
main()
{
setup
test_all_distros
}
main "$@" main "$@"