bluebird75 / luaunit

LuaUnit is a popular unit-testing framework for Lua, with an interface typical of xUnit libraries (Python unittest, Junit, NUnit, ...). It supports several output formats (Text, TAP, JUnit, ...) to be used directly or work with Continuous Integration platforms (Jenkins, Maven, ...).
Other
572 stars 137 forks source link

travis: fix [ usage #132

Closed kevans91 closed 4 years ago

kevans91 commented 4 years ago

The || operator is actually a shell construct, not recognized by test/[. We could change this to [ expr ] || [ expr2 ], but it's cheaper to just use the POSIX-specified -o instead.

Signed-off-by: Kyle Evans kevans@FreeBSD.org

--

Noticed while looking at the build log, in before_install.1 of the LUANUMBER=float jobs:

+'[' lua5.2 == lua5.3 .travis/setup_lua.sh: line 110: [: missing `]' +lua5.2 == lua5.4 ']' .travis/setup_lua.sh: line 110: lua5.2: command not found

bluebird75 commented 4 years ago

Thanks. I always run into trouble with shell condition testing. This is really arcane ! In 20 years, I still have not figured it out