From 1ba1fcc61a200c833f4a89849dd9d2577693bfa0 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 1 Oct 2024 15:40:46 -0400 Subject: Add comment about use of xtrace --- src/delivery_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/delivery_test.c b/src/delivery_test.c index e2bfe97..3809768 100644 --- a/src/delivery_test.c +++ b/src/delivery_test.c @@ -13,7 +13,9 @@ void delivery_tests_run(struct Delivery *ctx) { } else { memset(globals.workaround.conda_reactivate, 0, PATH_MAX); } - snprintf(globals.workaround.conda_reactivate, PATH_MAX - 1, "\nmamba activate ${CONDA_DEFAULT_ENV}\n"); + // Test blocks always run with xtrace enabled. Disable, and reenable it. Conda's wrappers produce an incredible + // amount of debug information. + snprintf(globals.workaround.conda_reactivate, PATH_MAX - 1, "\nset +x; mamba activate ${CONDA_DEFAULT_ENV}; set -x\n"); if (!ctx->tests[0].name) { msg(STASIS_MSG_WARN | STASIS_MSG_L2, "no tests are defined!\n"); -- cgit