diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2013-10-12 13:07:33 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-10-12 13:07:33 -0300 |
| commit | 57bde51526bcd9c022e29802f29ae432a3a03bef (patch) | |
| tree | 30fccc6c7a9ba27df46c936564d85e7477396e5b | |
| parent | 5b699730c7a525c0f22bbf507aabad9fe8cfb762 (diff) | |
| download | luarocks-57bde51526bcd9c022e29802f29ae432a3a03bef.tar.gz luarocks-57bde51526bcd9c022e29802f29ae432a3a03bef.tar.bz2 luarocks-57bde51526bcd9c022e29802f29ae432a3a03bef.zip | |
Some tests require a local sshd server.
Add a small check and message to myself, to avoid running the whole thing only
to have it fail at the very end.
| -rwxr-xr-x | test/testing.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/testing.sh b/test/testing.sh index 207bdfbc..5b3de201 100755 --- a/test/testing.sh +++ b/test/testing.sh | |||
| @@ -7,6 +7,14 @@ | |||
| 7 | exit 1 | 7 | exit 1 |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | if [ -z "$@"] | ||
| 11 | then | ||
| 12 | ps aux | grep -q '[s]shd' || { | ||
| 13 | echo "Run sudo /bin/sshd in order to perform all tests." | ||
| 14 | exit 1 | ||
| 15 | } | ||
| 16 | fi | ||
| 17 | |||
| 10 | testing_dir="$PWD" | 18 | testing_dir="$PWD" |
| 11 | 19 | ||
| 12 | testing_tree="$testing_dir/testing" | 20 | testing_tree="$testing_dir/testing" |
