Skip to content

Commit 575314f

Browse files
committed
Fix misc directives test cases
1 parent 36876ff commit 575314f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/regression/config/10-misc-directives.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
error => [ qr/ModSecurity: Warning. Unconditional match in SecAction\./, 1 ],
5656
},
5757
match_file => {
58-
"$ENV{DATA_DIR}/ip.pag" => qr/\x00\x06dummy\x00\x00\x021\x00/,
58+
"$ENV{DATA_DIR}/$ENV{RUNASUSER}-ip.pag" => qr/\x00\x06dummy\x00\x00\x021\x00/,
5959
},
6060
match_response => {
6161
status => qr/^200$/,

tests/run-regression-tests.pl.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ unless (defined $opt{S}) {
132132
HTTPD_CONF => $opt{C},
133133
HTDOCS => $opt{H},
134134
USER_AGENT => $UA_NAME,
135+
RUNASUSER => $ENV{USER} || $ENV{LOGNAME} || $ENV{USERNAME} || 'unknown',
135136
);
136137

137138
#dbg("OPTIONS: ", \%opt);

0 commit comments

Comments
 (0)