diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-23 22:29:36 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-23 22:29:36 -0300 |
| commit | e869c098d7432d039d3bdddd3f24ef9d20522a2f (patch) | |
| tree | 83565496d4a3e7de62625945eb47eb1e5b0cb3c6 /test | |
| parent | 28ade76301133abc3b4ea96faefb51fe59f1c3ad (diff) | |
| download | luarocks-e869c098d7432d039d3bdddd3f24ef9d20522a2f.tar.gz luarocks-e869c098d7432d039d3bdddd3f24ef9d20522a2f.tar.bz2 luarocks-e869c098d7432d039d3bdddd3f24ef9d20522a2f.zip | |
Fail nicely if CWD does not exist. Fixes #147.
Diffstat (limited to 'test')
| -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 b3c85191..becaa14f 100755 --- a/test/testing.sh +++ b/test/testing.sh | |||
| @@ -346,6 +346,8 @@ fail_lint_invalid() { $luarocks lint invalid; } | |||
| 346 | fail_show_invalid() { $luarocks show invalid; } | 346 | fail_show_invalid() { $luarocks show invalid; } |
| 347 | fail_new_version_invalid() { $luarocks new_version invalid; } | 347 | fail_new_version_invalid() { $luarocks new_version invalid; } |
| 348 | 348 | ||
| 349 | fail_inexistent_dir() { mkdir idontexist; cd idontexist; rmdir ../idontexist; $luarocks; err=$?; cd ..; return $err; } | ||
| 350 | |||
| 349 | fail_make_norockspec() { $luarocks make; } | 351 | fail_make_norockspec() { $luarocks make; } |
| 350 | 352 | ||
| 351 | fail_build_blank_arg() { $luarocks build --tree="" lpeg; } | 353 | fail_build_blank_arg() { $luarocks build --tree="" lpeg; } |
