Skip to content

Commit a030a47

Browse files
Pip install allow breaking system packages. We SHOULD use a virtualenv, but we do not yet (#33951)
Co-authored-by: Andrei Litvin <andreilitvin@google.com>
1 parent 4d5e2ee commit a030a47

11 files changed

+33
-33
lines changed

src/test_driver/linux-cirque/CommissioningFailureOnReportTest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ def run_controller_test(self):
9191

9292
req_device_id = req_ids[0]
9393

94-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
94+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9595
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_clusters-0.0-py3-none-any.whl")))
96-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
96+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9797
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl")))
98-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
98+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9999
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_repl-0.0-py3-none-any.whl")))
100100

101101
command = ("gdb -return-child-result -q -ex run -ex bt --args python3 "

src/test_driver/linux-cirque/CommissioningFailureTest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ def run_controller_test(self):
9191

9292
req_device_id = req_ids[0]
9393

94-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
94+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9595
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_clusters-0.0-py3-none-any.whl")))
96-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
96+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9797
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl")))
98-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
98+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9999
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_repl-0.0-py3-none-any.whl")))
100100

101101
command = "gdb -return-child-result -q -ex run -ex bt --args python3 {} -t 150 -a {} --paa-trust-store-path {}".format(

src/test_driver/linux-cirque/CommissioningTest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ def run_controller_test(self):
132132

133133
req_device_id = req_ids[0]
134134

135-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
135+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
136136
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_clusters-0.0-py3-none-any.whl")))
137-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
137+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
138138
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl")))
139-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
139+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
140140
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_repl-0.0-py3-none-any.whl")))
141141

142142
command = ("gdb -return-child-result -q -ex run -ex bt --args python3 "

src/test_driver/linux-cirque/CommissioningWindowTest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ def run_controller_test(self):
9595

9696
req_device_id = req_ids[0]
9797

98-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
98+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9999
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_clusters-0.0-py3-none-any.whl")))
100-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
100+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
101101
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl")))
102-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
102+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
103103
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_repl-0.0-py3-none-any.whl")))
104104

105105
command = ("gdb -return-child-result -q -ex run -ex bt "

src/test_driver/linux-cirque/FailsafeTest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ def run_controller_test(self):
9191

9292
req_device_id = req_ids[0]
9393

94-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
94+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9595
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_clusters-0.0-py3-none-any.whl")))
96-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
96+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9797
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl")))
98-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
98+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9999
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_repl-0.0-py3-none-any.whl")))
100100

101101
command = "gdb -return-child-result -q -ex run -ex bt --args python3 {} -t 150 -a {} --paa-trust-store-path {}".format(

src/test_driver/linux-cirque/MobileDeviceTest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ def run_controller_test(self):
9191

9292
req_device_id = req_ids[0]
9393

94-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
94+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9595
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_clusters-0.0-py3-none-any.whl")))
96-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
96+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9797
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl")))
98-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
98+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
9999
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_repl-0.0-py3-none-any.whl")))
100100

101101
command = ("gdb -batch -return-child-result -q -ex run -ex \"thread apply all bt\" "

src/test_driver/linux-cirque/PythonCommissioningTest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ def run_controller_test(self):
104104

105105
req_device_id = req_ids[0]
106106

107-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
107+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
108108
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_clusters-0.0-py3-none-any.whl")))
109-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
109+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
110110
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl")))
111-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
111+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
112112
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_repl-0.0-py3-none-any.whl")))
113113

114114
command = "gdb -return-child-result -q -ex run -ex bt --args python3 {} -t 150 -d {} --paa-trust-store-path {} --nodeid {}".format(

src/test_driver/linux-cirque/SplitCommissioningTest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ def run_controller_test(self):
9898

9999
req_device_id = req_ids[0]
100100

101-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
101+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
102102
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_clusters-0.0-py3-none-any.whl")))
103-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
103+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
104104
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl")))
105-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
105+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
106106
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_repl-0.0-py3-none-any.whl")))
107107

108108
command = ("gdb -return-child-result -q -ex run -ex bt --args python3 "

src/test_driver/linux-cirque/SubscriptionResumptionCapacityTest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ def run_subscription_resumption_capacity_test(self):
125125
self.reset_thread_devices(server_ids)
126126

127127
for req_device_id in req_ids:
128-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
128+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
129129
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_clusters-0.0-py3-none-any.whl")))
130-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
130+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
131131
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl")))
132-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
132+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
133133
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_repl-0.0-py3-none-any.whl")))
134134

135135
command1 = ("gdb -batch -return-child-result -q -ex run -ex \"thread apply all bt\" "

src/test_driver/linux-cirque/SubscriptionResumptionTest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ def run_subscription_resumption_test(self):
102102

103103
req_device_id = req_ids[0]
104104

105-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
105+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
106106
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_clusters-0.0-py3-none-any.whl")))
107-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
107+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
108108
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl")))
109-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
109+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
110110
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_repl-0.0-py3-none-any.whl")))
111111

112112
command = ("gdb -batch -return-child-result -q -ex run -ex \"thread apply all bt\" "

src/test_driver/linux-cirque/SubscriptionResumptionTimeoutTest.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ def run_subscription_resumption_timeout_test(self):
103103

104104
req_device_id = req_ids[0]
105105

106-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
106+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
107107
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_clusters-0.0-py3-none-any.whl")))
108-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
108+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
109109
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl")))
110-
self.execute_device_cmd(req_device_id, "pip3 install {}".format(os.path.join(
110+
self.execute_device_cmd(req_device_id, "pip3 install --break-system-packages {}".format(os.path.join(
111111
CHIP_REPO, "out/debug/linux_x64_gcc/controller/python/chip_repl-0.0-py3-none-any.whl")))
112112

113113
command = ("gdb -batch -return-child-result -q -ex run -ex \"thread apply all bt\" "

0 commit comments

Comments
 (0)