test: skip test-path on Salsa CI

Salsa is the Debian git forge. In the package build environment test-path
always fails as we cannot set up cgroups and so the path unit fails to
start. Skip the test in that environment.

Unfortunately meson doesn't allow to skip individual tests by name.
This commit is contained in:
Luca Boccassi
2023-08-13 10:27:04 +01:00
committed by Luca Boccassi
parent f7590e3cb4
commit a0b0b670ab
2 changed files with 17 additions and 8 deletions
+2
View File
@@ -339,6 +339,8 @@ const char *ci_environment(void) {
return (ans = "github-actions");
if (getenv("AUTOPKGTEST_ARTIFACTS") || getenv("AUTOPKGTEST_TMP"))
return (ans = "autopkgtest");
if (getenv("SALSA_CI_IMAGES"))
return (ans = "salsa-ci");
FOREACH_STRING(var, "CI", "CONTINOUS_INTEGRATION") {
/* Those vars are booleans according to Semaphore and Travis docs: