diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2022-12-11 21:13:33 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2022-12-11 22:08:18 +0000 |
commit | 90a57476a95af4835d346bad29ebcf232789eecd (patch) | |
tree | ae7842467864b3f74250a7b26f8fe1d0cc9a2eec /tests | |
parent | 9dba93fbcb9600b2e53baa51197a235cc9030905 (diff) |
tests: rpush: Add test cases for configurable alias
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tests/rpush | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/tests/rpush b/tests/tests/rpush index 783e7d9..3378da9 100755 --- a/tests/tests/rpush +++ b/tests/tests/rpush @@ -21,10 +21,27 @@ t-dgit-rpush () { t-dgit "$@" --ssh=$troot/ssh rpush somehost:$tmp/$p } +mkdir $tmp/empty +cd $tmp/empty + +t-expect-fail F:'error: looked for .dsc' \ +t-dgit-rpush -cdgit.default.rpush-subcmd=built + +t-expect-fail F:'error: looked for .dsc' \ +t-dgit-rpush -cdgit.default.push-subcmd=built + +cd $tmp/$p + t-dgit --dpkg-buildpackage:-d build -mkdir $tmp/empty cd $tmp/empty + +t-expect-fail F:'dgit rpush, but dgit.default.[r]push-subcmd set to reject' \ +t-dgit-rpush -cdgit.default.rpush-subcmd=reject + +t-expect-fail F:'dgit rpush, but dgit.default.[r]push-subcmd set to reject' \ +t-dgit-rpush + t-dgit-rpush -cdgit.default.rpush-subcmd=built cd $tmp/$p |