diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-02 18:42:35 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-02 18:55:47 -0400 |
commit | 28c7c9095af3256f9e6c59b6138f4c28b216a806 (patch) | |
tree | 5ffe146b26978b748966a9c27f632282f40786a0 /src/deliverable.c | |
parent | 67a3b5873944aa2279bf82f5c1f13f35dab3da2a (diff) | |
download | stasis-28c7c9095af3256f9e6c59b6138f4c28b216a806.tar.gz |
Use new COE_CHECK_ABORT
Diffstat (limited to 'src/deliverable.c')
-rw-r--r-- | src/deliverable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/deliverable.c b/src/deliverable.c index 17aebf7..bd2634d 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -1395,7 +1395,7 @@ void delivery_tests_run(struct Delivery *ctx) { if (!access(destdir, F_OK)) { msg(OMC_MSG_L3, "Purging repository %s\n", destdir); if (rmtree(destdir)) { - COE_CHECK_ABORT(!globals.continue_on_error, "Unable to remove repository\n") + COE_CHECK_ABORT(1, "Unable to remove repository\n"); } } msg(OMC_MSG_L3, "Cloning repository %s\n", ctx->tests[i].repository); @@ -1403,11 +1403,11 @@ void delivery_tests_run(struct Delivery *ctx) { ctx->tests[i].repository_info_tag = strdup(git_describe(destdir)); ctx->tests[i].repository_info_ref = strdup(git_rev_parse(destdir, "HEAD")); } else { - COE_CHECK_ABORT(!globals.continue_on_error, "Unable to clone repository\n") + COE_CHECK_ABORT(1, "Unable to clone repository\n"); } if (pushd(destdir)) { - COE_CHECK_ABORT(!globals.continue_on_error, "Unable to enter repository directory\n") + COE_CHECK_ABORT(1, "Unable to enter repository directory\n"); } else { #if 1 int status; @@ -1445,7 +1445,7 @@ void delivery_tests_run(struct Delivery *ctx) { status = shell(&proc, cmd); if (status) { msg(OMC_MSG_ERROR, "Script failure: %s\n%s\n\nExit code: %d\n", ctx->tests[i].name, ctx->tests[i].script, status); - COE_CHECK_ABORT(!globals.continue_on_error, "Test failure") + COE_CHECK_ABORT(1, "Test failure"); } if (toxconf) { |