SIPp / sipp

The SIPp testing tool
https://sipp.readthedocs.io
Other
888 stars 375 forks source link

test 0152 fails: cut: tmp.log: No such file or directory #712

Open ryandesign opened 3 months ago

ryandesign commented 3 months ago

Running regress/runtests on macOS, test 0152 fails this way:

Testing github-#0152: cut: tmp.log: No such file or directory
cut: tmp.log: No such file or directory
github-#0152/run: line 15: test: -eq: unary operator expected
failed (got  calls, and  failed)

So there are several problems:

Did you mean: if test "$calls" -eq 20 && test "$failed" -gt 0; then

wdoekes commented 2 months ago

shellcheck won't help here.

If there is no tmp.log then getting values out of it is useless. Doing "" -eq 20 makes as little sense as -eq 20.

(It would've been bad if the test succeeded though.)

I wouldn't mind a fix to the script, but more relevant is why there is no tmp.log in the first place.