diff options
| author | Peter Melnichenko <mpeterval@gmail.com> | 2017-09-11 13:19:03 +0300 |
|---|---|---|
| committer | Peter Melnichenko <mpeterval@gmail.com> | 2017-09-11 13:19:03 +0300 |
| commit | 85701e003241798e36b81ed1e3ed285f7bf5c7a0 (patch) | |
| tree | f5af4afe237fe005d43218ed2ff244e9f085004c /test/test_environment.lua | |
| parent | 957149e4be48fe3f87b44f73984c5b20fd8d08f1 (diff) | |
| download | luarocks-85701e003241798e36b81ed1e3ed285f7bf5c7a0.tar.gz luarocks-85701e003241798e36b81ed1e3ed285f7bf5c7a0.tar.bz2 luarocks-85701e003241798e36b81ed1e3ed285f7bf5c7a0.zip | |
Clarify test_env.need_rock description wrt return value
Diffstat (limited to 'test/test_environment.lua')
| -rw-r--r-- | test/test_environment.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_environment.lua b/test/test_environment.lua index c781af4b..bc1e5277 100644 --- a/test/test_environment.lua +++ b/test/test_environment.lua | |||
| @@ -533,7 +533,9 @@ function test_env.setup_specs(extra_rocks) | |||
| 533 | end | 533 | end |
| 534 | end | 534 | end |
| 535 | 535 | ||
| 536 | --- Test if required rock is installed if not, install it | 536 | --- Test if required rock is installed and if not, install it. |
| 537 | -- Return `true` if the rock is already installed or has been installed successfully, | ||
| 538 | -- `false` if installation failed. | ||
| 537 | function test_env.need_rock(rock) | 539 | function test_env.need_rock(rock) |
| 538 | print("Check if " .. rock .. " is installed") | 540 | print("Check if " .. rock .. " is installed") |
| 539 | if test_env.run.luarocks_noprint_nocov(test_env.quiet("show " .. rock)) then | 541 | if test_env.run.luarocks_noprint_nocov(test_env.quiet("show " .. rock)) then |
