diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-04-13 19:27:01 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-04-13 19:27:01 -0300 |
commit | 40f9173755e9c770a6f773bc2bf00bc13fd8bec0 (patch) | |
tree | 4eb5951bda62a37760208c81e280e719e3ad8f17 /test/testing.sh | |
parent | 6d5dfcd8fe409669eac9fb0787b306ff75115825 (diff) | |
download | luarocks-40f9173755e9c770a6f773bc2bf00bc13fd8bec0.tar.gz luarocks-40f9173755e9c770a6f773bc2bf00bc13fd8bec0.tar.bz2 luarocks-40f9173755e9c770a6f773bc2bf00bc13fd8bec0.zip |
Fail when given an invalid tree.
Diffstat (limited to '')
-rwxr-xr-x | test/testing.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testing.sh b/test/testing.sh index 45f16c0c..af2ec45e 100755 --- a/test/testing.sh +++ b/test/testing.sh | |||
@@ -367,6 +367,8 @@ fail_lint_invalid() { $luarocks lint invalid; } | |||
367 | fail_show_invalid() { $luarocks show invalid; } | 367 | fail_show_invalid() { $luarocks show invalid; } |
368 | fail_new_version_invalid() { $luarocks new_version invalid; } | 368 | fail_new_version_invalid() { $luarocks new_version invalid; } |
369 | 369 | ||
370 | fail_list_invalidtree() { $luarocks --tree=/some/invalid/tree list; } | ||
371 | |||
370 | fail_inexistent_dir() { mkdir idontexist; cd idontexist; rmdir ../idontexist; $luarocks; err=$?; cd ..; return $err; } | 372 | fail_inexistent_dir() { mkdir idontexist; cd idontexist; rmdir ../idontexist; $luarocks; err=$?; cd ..; return $err; } |
371 | 373 | ||
372 | fail_make_norockspec() { $luarocks make; } | 374 | fail_make_norockspec() { $luarocks make; } |