. /usr/share/beakerlib/beakerlib.sh [chuch ~]$ rlLog "hola hej" :: [ 17:55:04 ] :: hola hej BEAKERLIB_JOURNAL not defined in the environment [chuch ~]1$ rlLog "-hola hej" :: [ 17:55:10 ] :: BEAKERLIB_JOURNAL not defined in the environment
As rlLog function has got a flag it uses standard parsing using getopt. I would say this is expected and can be workaround by '--', e.g. rlLog -- '-hola hej'. May be documentation change would be good.
sorry but regressions should not need to be worked around. Why not fix it?
(In reply to Dalibor Pospíšil from comment #1) > As rlLog function has got a flag it uses standard parsing using getopt. I > would say this is expected and can be workaround by '--', e.g. rlLog -- > '-hola hej'. While what you are saying is certainly true, we all wrote wayloads of our testcases long before option parsing was introduced into rlLog. From this point of view, it is a regression.
Ok, so the only solution I can think of is to treat the flag --prio-label as standard positioned argument (4th). I expect the flag is not used elsewhere so I can rewrite it completely.
fixed by https://git.fedorahosted.org/cgit/beakerlib.git/commit/?id=fc505e35287aedeb0066d23b5446f3e57ce1ee6f