open_spiel icon indicating copy to clipboard operation
open_spiel copied to clipboard

build_only arguments are not escaped correctly in print

Open pratapram opened this issue 6 years ago • 3 comments

This is a minor bug. When I build using arguments build_only, it displays an error at the end.

$./open_spiel/scripts/build_and_run_tests.sh --build_only=true ... [ 99%] Built target logger_test [100%] Built target file_test [100%] Built target tensor_view_test ./open_spiel/scripts/build_and_run_tests.sh: line 226: ARG_build_only: command not found *** Skipping runing tests as build_only is
Exiting virtualenv $

This is the offending line: echo -e "\033[32m*** Skipping runing tests as build_only is $(ARG_build_only) \e[0m"

It should be echo -e "\033[32m*** Skipping runing tests as build_only is ${ARG_build_only} \e[0m"

pratapram avatar Oct 20 '20 20:10 pratapram

Ok thanks for flagging!

Hmm, am I missing something.. those two lines look exactly the same to me.. (though I do see a typo)

Oh wait... one has parentheses, the other has braces. Nice catch! Want to submit your first OpenSpiel PR? Why not start easy? :) I think you can do it directly from github's web interface.

lanctot avatar Oct 21 '20 00:10 lanctot

Yes. I will submit my first PR :-)

pratapram avatar Oct 21 '20 15:10 pratapram

Fixed by https://github.com/deepmind/open_spiel/pull/418

lanctot avatar Oct 26 '20 10:10 lanctot