[master] 0b16bb4c1 vtc: Log why execution is aborted
Nils Goroll
nils.goroll at uplex.de
Tue May 20 09:12:05 UTC 2025
commit 0b16bb4c15dd55b8d51a68ebbf868743d7a363be
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Mon May 6 14:32:15 2024 +0200
vtc: Log why execution is aborted
diff --git a/bin/varnishtest/vtc.c b/bin/varnishtest/vtc.c
index 2ac436700..60e1dd7c4 100644
--- a/bin/varnishtest/vtc.c
+++ b/bin/varnishtest/vtc.c
@@ -373,8 +373,11 @@ parse_string(struct vtclog *vl, void *priv, const char *spec)
e = strchr(buf, '\0');
AN(e);
for (p = buf; p < e; p++) {
- if (vtc_error || vtc_stop)
+ if (vtc_error || vtc_stop) {
+ vtc_log(vl, 1, "Aborting execution, test %s",
+ vtc_error ? "failed" : "ended");
break;
+ }
/* Start of line */
if (isspace(*p))
continue;
More information about the varnish-commit
mailing list