diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-09-08 14:30:42 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-09-08 14:30:42 +0100 |
commit | cd9bd10c7bab0c5a3e5cd67d6d2749a341ab7bc8 (patch) | |
tree | bf306179256e0ea5627c90da9ce5fba20d8ad6f8 /test/test-gall.ll.lua | |
parent | b143d1ec3813f25128e34d06aa552b9d6703569b (diff) | |
download | gall-cd9bd10c7bab0c5a3e5cd67d6d2749a341ab7bc8.tar.gz |
GALL.LL: Complete coverage of gall.ll
Diffstat (limited to 'test/test-gall.ll.lua')
-rw-r--r-- | test/test-gall.ll.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test-gall.ll.lua b/test/test-gall.ll.lua index 90e3f8b..8dfb0be 100644 --- a/test/test-gall.ll.lua +++ b/test/test-gall.ll.lua @@ -60,6 +60,19 @@ function suite.test_rungit() assert(stderr == nil or stderr == "") end +function suite.test_rungit_stderr() + local args = { + repo = "/DOES_NOT_EXIST", + stderr = gall.ll.chomp, + stdout = gall.ll.chomp, + "log" + } + local why, stdout, stderr = gall.ll.rungit(args) + assert(why ~= 0) + assert(stdout == nil or stdout == "") + assert(stderr:find("DOES_NOT_EXIST")) +end + function suite.test_hash_object() local args = { repo = ".", |