1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
From: =?utf-8?q?Ferenc_W=C3=A1gner?= <wferi@debian.org>
Date: Thu, 28 Sep 2023 08:44:56 +0200
Subject: cts: do not capture the build directory
---
cts/cts-attrd.in | 10 ----------
cts/cts-exec.in | 10 ----------
cts/cts-fencing.in | 9 ---------
cts/cts-regression.in | 9 ---------
cts/cts-scheduler.in | 9 ---------
5 files changed, 47 deletions(-)
diff --git a/cts/cts-attrd.in b/cts/cts-attrd.in
index ccc43e2..3f09173 100644
--- a/cts/cts-attrd.in
+++ b/cts/cts-attrd.in
@@ -16,16 +16,6 @@ import subprocess
import sys
import tempfile
-# These imports allow running from a source checkout after running `make`.
-# Note that while this doesn't necessarily mean it will successfully run tests,
-# but being able to see --help output can be useful.
-if os.path.exists("@abs_top_srcdir@/python"):
- sys.path.insert(0, "@abs_top_srcdir@/python")
-
-# pylint: disable=comparison-of-constants,comparison-with-itself,condition-evals-to-constant
-if os.path.exists("@abs_top_builddir@/python") and "@abs_top_builddir@" != "@abs_top_srcdir@":
- sys.path.insert(0, "@abs_top_builddir@/python")
-
from pacemaker.buildoptions import BuildOptions
from pacemaker.exitstatus import ExitStatus
from pacemaker._cts.corosync import Corosync
diff --git a/cts/cts-exec.in b/cts/cts-exec.in
index b42905d..38b035a 100644
--- a/cts/cts-exec.in
+++ b/cts/cts-exec.in
@@ -22,16 +22,6 @@ import tempfile
# Prefer the source tree if available
TEST_DIR = sys.path[0]
-# These imports allow running from a source checkout after running `make`.
-# Note that while this doesn't necessarily mean it will successfully run tests,
-# but being able to see --help output can be useful.
-if os.path.exists("@abs_top_srcdir@/python"):
- sys.path.insert(0, "@abs_top_srcdir@/python")
-
-# pylint: disable=comparison-of-constants,comparison-with-itself,condition-evals-to-constant
-if os.path.exists("@abs_top_builddir@/python") and "@abs_top_builddir@" != "@abs_top_srcdir@":
- sys.path.insert(0, "@abs_top_builddir@/python")
-
from pacemaker.buildoptions import BuildOptions
from pacemaker.exitstatus import ExitStatus
from pacemaker._cts.corosync import Corosync
diff --git a/cts/cts-fencing.in b/cts/cts-fencing.in
index e104701..a1c9270 100644
--- a/cts/cts-fencing.in
+++ b/cts/cts-fencing.in
@@ -11,15 +11,6 @@ import sys
import subprocess
import tempfile
-# These imports allow running from a source checkout after running `make`.
-# Note that while this doesn't necessarily mean it will successfully run tests,
-# but being able to see --help output can be useful.
-if os.path.exists("@abs_top_srcdir@/python"):
- sys.path.insert(0, "@abs_top_srcdir@/python")
-
-if os.path.exists("@abs_top_builddir@/python") and "@abs_top_builddir@" != "@abs_top_srcdir@":
- sys.path.insert(0, "@abs_top_builddir@/python")
-
from pacemaker.buildoptions import BuildOptions
from pacemaker.exitstatus import ExitStatus
from pacemaker._cts.corosync import Corosync, localname
diff --git a/cts/cts-regression.in b/cts/cts-regression.in
index c6837c4..c32ae96 100644
--- a/cts/cts-regression.in
+++ b/cts/cts-regression.in
@@ -13,15 +13,6 @@ import subprocess
import sys
import textwrap
-# These imports allow running from a source checkout after running `make`.
-# Note that while this doesn't necessarily mean it will successfully run tests,
-# but being able to see --help output can be useful.
-if os.path.exists("@abs_top_srcdir@/python"):
- sys.path.insert(0, "@abs_top_srcdir@/python")
-
-if os.path.exists("@abs_top_builddir@/python") and "@abs_top_builddir@" != "@abs_top_srcdir@":
- sys.path.insert(0, "@abs_top_builddir@/python")
-
from pacemaker.buildoptions import BuildOptions
from pacemaker.exitstatus import ExitStatus
diff --git a/cts/cts-scheduler.in b/cts/cts-scheduler.in
index bd714fa..6f2105b 100644
--- a/cts/cts-scheduler.in
+++ b/cts/cts-scheduler.in
@@ -17,15 +17,6 @@ import subprocess
import platform
import tempfile
-# These imports allow running from a source checkout after running `make`.
-# Note that while this doesn't necessarily mean it will successfully run tests,
-# but being able to see --help output can be useful.
-if os.path.exists("@abs_top_srcdir@/python"):
- sys.path.insert(0, "@abs_top_srcdir@/python")
-
-if os.path.exists("@abs_top_builddir@/python") and "@abs_top_builddir@" != "@abs_top_srcdir@":
- sys.path.insert(0, "@abs_top_builddir@/python")
-
from pacemaker.buildoptions import BuildOptions
from pacemaker.exitstatus import ExitStatus
|