diff --git a/tests/regression/config/10-misc-directives.t b/tests/regression/config/10-misc-directives.t index 62a5e8e0..1c08d879 100644 --- a/tests/regression/config/10-misc-directives.t +++ b/tests/regression/config/10-misc-directives.t @@ -55,7 +55,7 @@ error => [ qr/ModSecurity: Warning. Unconditional match in SecAction\./, 1 ], }, match_file => { - "$ENV{DATA_DIR}/ip.pag" => qr/\x00\x06dummy\x00\x00\x021\x00/, + "$ENV{DATA_DIR}/$ENV{RUNASUSER}-ip.pag" => qr/\x00\x06dummy\x00\x00\x021\x00/, }, match_response => { status => qr/^200$/, diff --git a/tests/run-regression-tests.pl.in b/tests/run-regression-tests.pl.in index bf95343d..d8db0330 100755 --- a/tests/run-regression-tests.pl.in +++ b/tests/run-regression-tests.pl.in @@ -132,6 +132,7 @@ unless (defined $opt{S}) { HTTPD_CONF => $opt{C}, HTDOCS => $opt{H}, USER_AGENT => $UA_NAME, + RUNASUSER => $ENV{USER} || $ENV{LOGNAME} || $ENV{USERNAME} || 'unknown', ); #dbg("OPTIONS: ", \%opt);