aboutsummaryrefslogtreecommitdiff
path: root/tests/rep-create.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rep-create.testscript')
-rw-r--r--tests/rep-create.testscript17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/rep-create.testscript b/tests/rep-create.testscript
index 487acf0..a7b9e19 100644
--- a/tests/rep-create.testscript
+++ b/tests/rep-create.testscript
@@ -147,6 +147,23 @@
EOO
}
+ : remote-key-option-failure
+ :
+ : Test that bpkg-rep-create fails for the remote --key option.
+ :
+ {
+ $clone_rep;
+
+ touch .git; # Pretend we are in the git repository.
+
+ mkdir .build2;
+ echo "--key $key" >=.build2/bpkg-rep-create.options;
+
+ $* 1/stable/ 2>>/~%EOE% != 0
+ %.+/bpkg-rep-create.options: error: --key <name> in remote default options file%
+ EOE
+ }
+
: without-key
:
$clone_rep;