From 770e03154576796f3cbf13a3456e68949eb7bb31 Mon Sep 17 00:00:00 2001 From: Caio Ramos Casimiro Date: Tue, 8 Aug 2023 11:47:52 +0100 Subject: [PATCH] chore(tests) enable rust backtrace Add `env RUST_BACKTRACE=full;` to nginx.conf. --- t/TestWasm.pm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/t/TestWasm.pm b/t/TestWasm.pm index 0b9285efd..fd2b1a158 100644 --- a/t/TestWasm.pm +++ b/t/TestWasm.pm @@ -108,9 +108,13 @@ add_block_preprocessor(sub { my $main_config = $block->main_config || ''; - $block->set_value("main_config", - "env WASMTIME_BACKTRACE_DETAILS=1;\n" - . $main_config); + my @env_vars = ( + "env WASMTIME_BACKTRACE_DETAILS=1", + "env RUST_BACKTRACE=full", + ); + my $env_section = join(";\n", @env_vars) . ";\n\n"; + + $block->set_value("main_config", $env_section . $main_config); # --- load_nginx_modules: ngx_http_echo_module