git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[Patch 2/5] t9601-cvsimport-vendor-branch: exclude test if cvs is not installed

From
Rrandall.s.becker@rogers.com <randall.s.becker@rogers.com>
Date
Jun 13, 2019, 18:53 UTC
Message-ID
<20190613185313.16120-3-randall.s.becker@rogers.com>
In-Reply-To
<20190613185313.16120-1-randall.s.becker@rogers.com>
From: "Randall S. Becker" <rsbecker@nexbridge.com>

The t9601-cvsimport-vendor-branch test requires the cvs package to be installed on the system on which the test is being run. The test will fail if cvs is not installed. The patch checks that cvs is installed by running the object without arguments, which should complete successfully if available.

Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
---
 t/t9601-cvsimport-vendor-branch.sh | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/t/t9601-cvsimport-vendor-branch.sh b/t/t9601-cvsimport-vendor-branch.sh
index 827d39f5bf..a473f07d2d 100755
--- a/t/t9601-cvsimport-vendor-branch.sh
+++ b/t/t9601-cvsimport-vendor-branch.sh
@@ -32,8 +32,16 @@
 #       tag has been removed.
 
 test_description='git cvsimport handling of vendor branches'
+
 . ./lib-cvs.sh
 
+cvs >/dev/null 2>&1
+if test $? -ne 1
+then
+	skip_all='skipping git-cvsimport tests, cvs not found'
+	test_done
+fi
+
 setup_cvs_test_repository t9601
 
 test_expect_success PERL 'import a module with a vendor branch' '
-- 
2.22.0
Previous: randall.s.becker@rogers.comNext: randall.s.becker@rogers.com
Message 5 of 9 in “Add exclusions for tests requiring cvs where cvs is not installed”
  1. 0/5 Add exclusions for tests requiring cvs where cvs is not installedrandall.s.becker@rogers.com, Jun 13, 2019
  2. 3/5 t9602-cvsimport-branches-tags: exclude test if cvs is not installedrandall.s.becker@rogers.com, Jun 13, 2019
  3. 5/5 t9604-cvsimport-timestamps: exclude test if cvs is not installedrandall.s.becker@rogers.com, Jun 13, 2019
  4. 4/5 t9603-cvsimport-patchsets: exclude test if cvs is not installedrandall.s.becker@rogers.com, Jun 13, 2019
  5. 2/5 t9601-cvsimport-vendor-branch: exclude test if cvs is not installedrandall.s.becker@rogers.com, Jun 13, 2019
  6. 1/5 t9600-cvsimport: exclude test if cvs is not installedrandall.s.becker@rogers.com, Jun 13, 2019
  7. Jeff KingJun 13, 2019
  8. Randall S. BeckerJun 13, 2019
  9. Randall S. BeckerJun 13, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.