aboutsummaryrefslogtreecommitdiff
path: root/tests/project.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-08-09 20:17:14 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-08-09 20:17:14 +0300
commit30f6a563fc8c5b2d5c70cd55838aca4e5692b3e4 (patch)
tree581410c954a633dfb5f5ad31db40193dbd943362 /tests/project.test
parent4f2d4022dca65da2a6f03e1f27df13deeaab360a (diff)
Fix init, config and status commands tests to pass for older git versions
Diffstat (limited to 'tests/project.test')
-rw-r--r--tests/project.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/project.test b/tests/project.test
index 6ab2b4b..444ca00 100644
--- a/tests/project.test
+++ b/tests/project.test
@@ -2,6 +2,8 @@
# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
+.include git.test
+
# Create and initialize a sample build2 C++ executable project that will be
# copied by subsequent tests and scopes setup commands. The common approach
# will be that group scopes copy and modify the parent scope project as
@@ -10,7 +12,9 @@
# project can not be shared between multiple bdep processes. Also we need to
# make sure that projects are not cloned while being used by bdep.
#
-+$new prj 2>- &prj/*** # By default: -t exe -l c++.
+# By default: -t exe -l c++.
+#
++$new prj --vcs ($git_supported ? git : none) 2>- &prj/***
# The most commonly used project cloning command that copies it from the
# parent scope working directory.