ci: build.sh: Add a wrapper function over the 'test' job

This helper is a shell function transcript of its original GitLab CI
counterpart.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Erik Skultety 2023-08-24 15:48:46 +02:00
parent 387553db48
commit 8e660c5286

View File

@ -52,3 +52,8 @@ run_dist() {
git update-index --refresh git update-index --refresh
run_cmd meson dist -C build --no-tests run_cmd meson dist -C build --no-tests
} }
run_test() {
test -f $GIT_ROOT/build/build.ninja || run_meson_setup
run_cmd meson test -C build $TEST_ARGS
}