mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 09:13:29 +00:00
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:
parent
f077e6efdc
commit
80e1997721
@ -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 "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user