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

Re: [Patch 0/5] Add exclusions for tests requiring cvs where cvs is not installed

From
Jeff King <peff@peff.net>
Date
Jun 13, 2019, 19:06 UTC
Message-ID
<20190613190644.GC27217@sigill.intra.peff.net>
In-Reply-To
<20190613185313.16120-1-randall.s.becker@rogers.com>
On Thu, Jun 13, 2019 at 02:53:08PM -0400, randall.s.becker@rogers.com wrote:
Show 7 quoted lines
> From: "Randall S. Becker" <rsbecker@nexbridge.com>
> 
> t9600 to t9604 currently depend on cvs to function correctly, otherwise
> all of those tests fail. This patch follows an existing pattern of
> from the t9400 series by attempting to run cvs without arguments,
> which succeeds if installed, and skipping the test if the command
> fails.

Hrm. I don't have cvs installed, and those tests are properly skipped for me. That's because they include lib-cvs.sh, which has:

  if ! type cvs >/dev/null 2>&1
  then
          skip_all='skipping cvsimport tests, cvs not found'
          test_done
  fi

Why doesn't that work for you? Does the "type" check not work (e.g., you have something called "cvs" but it does not behave as we expect)? If so, then it sounds like we just need to harmonize that with the other checks.

It also sounds like the t9400 tests could be using lib-cvs to avoid duplicating logic, though it might need some refactoring (they don't need cvsps, for example).

-Peff
Previous: randall.s.becker@rogers.comNext: Randall S. Becker
Message 7 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.