aboutsummaryrefslogtreecommitdiff
path: root/tests/submit/submit-git.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/submit/submit-git.test')
-rw-r--r--tests/submit/submit-git.test11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/submit/submit-git.test b/tests/submit/submit-git.test
index f96f79d..bedfd5f 100644
--- a/tests/submit/submit-git.test
+++ b/tests/submit/submit-git.test
@@ -66,15 +66,22 @@ pkg_ctl="$prj_ctl/hello.git"
: dir-only
:
- $* $~/dir 2>>~%EOE% != 0
+ $* dir 2>>~%EOE% != 0
%\[.+\] \[brep:error\] \[ref dir\] \[brep-submit-git\]: usage: .+brep-submit-git \[<options>\] <tgt-repo> \[<ref-repo>\] <dir>%
EOE
: ref-not-exist
:
- $* "$root_tgt_url" ref $~/dir 2>>~%EOE% != 0
+ $* "$root_tgt_url" ref dir 2>>~%EOE% != 0
%\[.+\] \[brep:error\] \[ref dir\] \[brep-submit-git\]: 'ref' does not exist or is not a directory%
EOE
+
+ : dir-not-exist
+ :
+ mkdir ref;
+ $* "$root_tgt_url" ref dir 2>>~%EOE% != 0
+ %\[.+\] \[brep:error\] \[ref dir\] \[brep-submit-git\]: 'dir' does not exist or is not a directory%
+ EOE
}
: success