Skip to content

Commit 84e0a79

Browse files
committed
Expect Rexfile path in loading messages
1 parent 1b4db2b commit 84e0a79

6 files changed

+9
-8
lines changed

t/load_rexfile.t

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ sub _setup_test {
6868

6969
$expected->{$extension} = -r $file ? cat($file) : $default_content;
7070
$expected->{$extension} =~ s{%REX_CLI_PATH%}{$rex_cli_path}msx;
71+
$expected->{$extension} =~ s{%REXFILE_PATH%}{$rexfile}gmsx;
7172
}
7273

7374
# reset log

t/rexfiles/Rexfile_fatal.log

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ERROR - Compile time errors:
2-
ERROR - syntax error at Rexfile line 5, near "abc
2+
ERROR - syntax error at %REXFILE_PATH% line 5, near "abc
33
ERROR -
44
ERROR - task "
55
ERROR - Compilation failed in require at %REX_CLI_PATH% line 756.

t/rexfiles/Rexfile_fatal_print.log

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ERROR - Compile time errors:
2-
ERROR - syntax error at Rexfile line 8, near "abc
2+
ERROR - syntax error at %REXFILE_PATH% line 8, near "abc
33
ERROR -
44
ERROR - print"
55
ERROR - Compilation failed in require at %REX_CLI_PATH% line 756.

t/rexfiles/Rexfile_warnings.log

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
WARN - You have some code warnings:
2-
WARN - This is warning at Rexfile line 5.
3-
WARN - Use of uninitialized value in concatenation (.) or string at Rexfile line 6.
2+
WARN - This is warning at %REXFILE_PATH% line 5.
3+
WARN - Use of uninitialized value in concatenation (.) or string at %REXFILE_PATH% line 6.

t/rexfiles/Rexfile_warnings_print.log

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
WARN - You have some code warnings:
2-
WARN - This is warning at Rexfile line 5.
3-
WARN - Use of uninitialized value in concatenation (.) or string at Rexfile line 6.
2+
WARN - This is warning at %REXFILE_PATH% line 5.
3+
WARN - Use of uninitialized value in concatenation (.) or string at %REXFILE_PATH% line 6.
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
This is STDERR message
22
WARN - You have some code warnings:
3-
WARN - This is warning at Rexfile line 5.
4-
WARN - Use of uninitialized value in concatenation (.) or string at Rexfile line 6.
3+
WARN - This is warning at %REXFILE_PATH% line 5.
4+
WARN - Use of uninitialized value in concatenation (.) or string at %REXFILE_PATH% line 6.

0 commit comments

Comments
 (0)