lux icon indicating copy to clipboard operation
lux copied to clipboard

crash with --require

Open martin-volf opened this issue 10 years ago • 1 comments

Command-line options like --require cause lux to crash:

#lux --require CONFIG_DIR test.lux 
summary log       : /base/lux_logs/run_2015_08_13_14_43_08/lux_summary.log


FATAL ERROR: /base/lux_logs/run_2015_08_13_14_43_08/lux_summary.log:
    error:function_clause [{lists,reverse,"R",[{file,"lists.erl"},{line,146}]},
                       {string,tokens,2,[{file,"string.erl"},{line,232}]},
                       {lux_suite,'-merge_env_opt/2-lc$^0/1-0-',1,
                                  [{file,"lux_suite.erl"},{line,891}]},
                       {lux_suite,merge_env_opt,2,
                                  [{file,"lux_suite.erl"},{line,891}]},
                       {lux_suite,merge_opts,3,
                                  [{file,"lux_suite.erl"},{line,866}]},
                       {lists,foldl,3,[{file,"lists.erl"},{line,1262}]},
                       {lux_suite,parse_script,3,
                                  [{file,"lux_suite.erl"},{line,627}]},
                       {lux_suite,run_cases,5,
                                  [{file,"lux_suite.erl"},{line,424}]}]

After the commit 7e8e9a command line option arguments are no longer grouped, but merge_env_opt obviously expects that they are.

martin-volf avatar Aug 13 '15 14:08 martin-volf

Thanks for the precise bug report! I am looking into this.

hawk avatar Aug 18 '15 10:08 hawk