Passing command line argument to SCons test -
i have test, call sometest, registered in scons can invoked doing:
scons sometest.test but sometest expects command-line arguments, namely looks flag -behappy, run in mode.
when attempt invoke test using:
scons sometest.test -behappy i few warnings scons:
warning: ignoring -e option warning: -w option not yet implemented then proceeds run test without passing parameter.
i tried
scons sometest.test -behappy scons 'sometest.test -behappy' to no avail.
i don't use scons, may worth trying old double hyphen, --. many shells use disable option processing passing options onto underlying script process.
scons sometest.test -- -behappy
from bash's man page:
a -- signals end of options , disables further option processing. > arguments after -- treated filenames , arguments. argument of - equivalent --.
check out bash's man page , search -- more information. if use shell sure check out shell's man page well.
hope helps.
Comments
Post a Comment