Ensure "stg init" done twice in a row fails properly Signed-off-by: Vincent Legoll <[email protected]> --- t/t0000-init.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 t/t0000-init.sh
diff --git a/t/t0000-init.sh b/t/t0000-init.sh new file mode 100755 index 0000000..30438e8 --- /dev/null +++ b/t/t0000-init.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +# Copyright (c) 2015 Vincent Legoll <[email protected]> + +test_description='Test stgit initialization' + +. ./test-lib.sh + +test_expect_success \ + 'check stgit initialization' \ + 'stg init' + +test_expect_code \ + 2 \ + 'check stgit duplicated initialization' \ + 'stg init' + +test_done -- 2.1.4 _______________________________________________ stgit-users mailing list [email protected] https://mail.gna.org/listinfo/stgit-users
