Project

General

Profile

Actions

Patch #42500

open

Skip repository tests when the SCM client command is unavailable

Added by Go MAEDA 1 day ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Repository tests can fail if the required SCM client command is unavailable or outdated (e.g., Mercurial 5.1 or higher is required for the current trunk), resulting in a large number of test failures.

To reproduce the issue, add the following lines to config/configuration.yml and run the repository tests.

  scm_subversion_command: /tmp/invalid-svn
  scm_mercurial_command: /tmp/invalid-hg
  scm_git_command: /tmp/invalid-git
  scm_cvs_command: /tmp/invalid-cvs
  scm_bazaar_command: /tmp/invalid-bzr

The attached patch modifies the test setup so that repository tests are skipped when the corresponding SCM client command is not available. This avoids test failures in such environments.

This issue is related to #33784#note-24.


Files

No data to display

Actions

Also available in: Atom PDF