tests: Create new function to launch tests
Move the calls to the individual distro tests into a separate
function called from `main()`.
@@ -347,10 +347,8 @@ test_distro_alpine()
run_test "${name}" "" "alpine" "no" "init"
}
-main()
+test_all_distros()
{
- setup
-
test_distro_fedora
test_distro_centos
test_distro_alpine
@@ -364,4 +362,11 @@ main()
fi
}
+main()
+{
+ setup
+
+ test_all_distros
+}
+
main "$@"
