Invoke error in cleanup is not found
In this small example the cleanup section is supposed to invoke a macro.
However there's a syntax error in the macro invocation, the ending "]" is missing, so I expected a syntax error, however it is not found.
lux --version
2.8.1
❯ cat test.lux
[doc]
Issue with the [cleanup] section.
[enddoc]
[shell test]
!echo "test"
?test
[cleanup]
[invoke missing_end_bracket%
❯ lux test.lux
summary log : /Users/jvikman/dev/tailf/tmp/lux_logs/run_2023_08_21_05_10_30_562064/lux_summary.log
test case : test.lux
progress : ..:..:.:..:..:.:..c....:..:.:..:.
result : SUCCESS
successful : 1
summary : SUCCESS
file:///Users/jvikman/dev/tailf/tmp/lux_logs/run_2023_08_21_05_10_30_562064/lux_summary.log.html
If there's a new line at the end of the [invoke missing_end_bracket the error is found.
Thanks for reporting this, but I think it is fixed in this commit:
https://github.com/hawk/lux/commit/516662e28d8c810244969f637a415ac929ac0a58
/Håkan
On Mon, Aug 21, 2023 at 7:13 AM Johan Vikman Lundström < @.***> wrote:
In this small example the cleanup section is supposed to invoke a macro.
However there's a syntax error in the macro invocation, the ending "]" is missing, so I expected a syntax error, however it is not found.
lux --version 2.8.1 ❯ cat test.lux [doc] Issue with the [cleanup] section. [enddoc]
[shell test] !echo "test" ?test
[cleanup] [invoke missing_end_bracket% ❯ lux test.lux summary log : /Users/jvikman/dev/tailf/tmp/lux_logs/run_2023_08_21_05_10_30_562064/lux_summary.log
test case : test.lux progress : ..:..:.:..:..:.:..c....:..:.:..:. result : SUCCESS
successful : 1 summary : SUCCESS
file:///Users/jvikman/dev/tailf/tmp/lux_logs/run_2023_08_21_05_10_30_562064/lux_summary.log.html
— Reply to this email directly, view it on GitHub https://github.com/hawk/lux/issues/49, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABGTMCMCQU5NSSSJAGUG53XWLU7NANCNFSM6AAAAAA3X2HAOE . You are receiving this because you are subscribed to this thread.Message ID: @.***>