Skip to content

Commit

Permalink
chore(tests) enable rust backtrace
Browse files Browse the repository at this point in the history
Add `env RUST_BACKTRACE=full;` to nginx.conf.
  • Loading branch information
casimiro committed Aug 8, 2023
1 parent 9ad9c05 commit 770e031
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions t/TestWasm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 770e031

Please sign in to comment.