Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash with --require #2

Open
martin-volf opened this issue Aug 13, 2015 · 1 comment
Open

crash with --require #2

martin-volf opened this issue Aug 13, 2015 · 1 comment

Comments

@martin-volf
Copy link

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.

@hawk
Copy link
Owner

hawk commented Aug 18, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants