@@ -108,6 +108,15 @@ def test_pip_install_salt_git(pipexec, build, build_dir, pyexec, build_version):
108
108
if sys .platform == "darwin" and "3.13" in build_version :
109
109
pytest .xfail ("Salt does not work with 3.13 on macos yet" )
110
110
111
+ p = subprocess .run (
112
+ [
113
+ str (pipexec ),
114
+ "install" ,
115
+ "ppbt" ,
116
+ ]
117
+ )
118
+ assert p .returncode == 0 , "Failed to install ppbt"
119
+
111
120
env = os .environ .copy ()
112
121
env ["RELENV_BUILDENV" ] = "yes"
113
122
if sys .platform == "linux" and shutil .which ("git" ):
@@ -147,6 +156,15 @@ def test_pip_install_salt_git(pipexec, build, build_dir, pyexec, build_version):
147
156
reason = "3.11.7 and greater will not work with 3005.x" ,
148
157
)
149
158
def test_pip_install_salt (pipexec , build , tmp_path , pyexec ):
159
+ p = subprocess .run (
160
+ [
161
+ str (pipexec ),
162
+ "install" ,
163
+ "ppbt" ,
164
+ ]
165
+ )
166
+ assert p .returncode == 0 , "Failed to install ppbt"
167
+
150
168
packages = [
151
169
"salt==3005" ,
152
170
]
@@ -172,6 +190,15 @@ def test_pip_install_salt(pipexec, build, tmp_path, pyexec):
172
190
173
191
@pytest .mark .skip_on_windows
174
192
def test_symlinked_scripts (pipexec , tmp_path , build ):
193
+ p = subprocess .run (
194
+ [
195
+ str (pipexec ),
196
+ "install" ,
197
+ "ppbt" ,
198
+ ]
199
+ )
200
+ assert p .returncode == 0 , "Failed to install ppbt"
201
+
175
202
name = "chardet==5.1.0"
176
203
env = os .environ .copy ()
177
204
env ["RELENV_DEBUG" ] = "yes"
@@ -211,6 +238,15 @@ def test_pip_install_salt_w_static_requirements(
211
238
if salt_branch == "3006.x" and sys .platform == "win32" :
212
239
pytest .xfail ("Known failure" )
213
240
241
+ p = subprocess .run (
242
+ [
243
+ str (pipexec ),
244
+ "install" ,
245
+ "ppbt" ,
246
+ ]
247
+ )
248
+ assert p .returncode == 0 , "Failed to install ppbt"
249
+
214
250
env = os .environ .copy ()
215
251
env ["RELENV_BUILDENV" ] = "yes"
216
252
env ["USE_STATIC_REQUIREMENTS" ] = "1"
@@ -270,6 +306,15 @@ def test_pip_install_salt_w_package_requirements(
270
306
if sys .platform == "darwin" and salt_branch == "3006.x" :
271
307
pytest .xfail ("Known failure" )
272
308
309
+ p = subprocess .run (
310
+ [
311
+ str (pipexec ),
312
+ "install" ,
313
+ "ppbt" ,
314
+ ]
315
+ )
316
+ assert p .returncode == 0 , "Failed to install ppbt"
317
+
273
318
env = os .environ .copy ()
274
319
env ["RELENV_BUILDENV" ] = "yes"
275
320
env ["USE_STATIC_REQUIREMENTS" ] = "1"
@@ -365,6 +410,15 @@ def test_pip_install_pyzmq(pipexec, pyzmq_version, build_version, arch):
365
410
if pyzmq_version == "25.1.2" and "3.13" in build_version :
366
411
pytest .xfail (f"{ pyzmq_version } does not install on 3.13" )
367
412
413
+ p = subprocess .run (
414
+ [
415
+ str (pipexec ),
416
+ "install" ,
417
+ "ppbt" ,
418
+ ]
419
+ )
420
+ assert p .returncode == 0 , "Failed to install ppbt"
421
+
368
422
env = os .environ .copy ()
369
423
370
424
p = subprocess .run (
@@ -410,6 +464,14 @@ def test_pip_install_cryptography(pipexec):
410
464
packages = [
411
465
"cryptography" ,
412
466
]
467
+ p = subprocess .run (
468
+ [
469
+ str (pipexec ),
470
+ "install" ,
471
+ "ppbt" ,
472
+ ]
473
+ )
474
+ assert p .returncode == 0 , "Failed to install ppbt"
413
475
env = os .environ .copy ()
414
476
env ["RELENV_BUILDENV" ] = "yes"
415
477
for name in packages :
@@ -421,6 +483,14 @@ def test_pip_install_idem(pipexec):
421
483
packages = [
422
484
"idem" ,
423
485
]
486
+ p = subprocess .run (
487
+ [
488
+ str (pipexec ),
489
+ "install" ,
490
+ "ppbt" ,
491
+ ]
492
+ )
493
+ assert p .returncode == 0 , "Failed to install ppbt"
424
494
env = os .environ .copy ()
425
495
env ["RELENV_BUILDENV" ] = "yes"
426
496
for name in packages :
@@ -430,6 +500,14 @@ def test_pip_install_idem(pipexec):
430
500
431
501
def test_pip_install_and_import_libcloud (pipexec , pyexec ):
432
502
name = "apache-libcloud"
503
+ p = subprocess .run (
504
+ [
505
+ str (pipexec ),
506
+ "install" ,
507
+ "ppbt" ,
508
+ ]
509
+ )
510
+ assert p .returncode == 0 , "Failed to install ppbt"
433
511
env = os .environ .copy ()
434
512
env ["RELENV_BUILDENV" ] = "yes"
435
513
p = subprocess .run ([str (pipexec ), "install" , name , "--no-cache-dir" ], env = env )
@@ -455,6 +533,14 @@ def test_pip_install_salt_pip_dir(pipexec, build, build_version, arch):
455
533
if sys .platform == "darwin" and "3.13" in build_version :
456
534
pytest .xfail ("Salt does not work with 3.13 on macos yet" )
457
535
536
+ p = subprocess .run (
537
+ [
538
+ str (pipexec ),
539
+ "install" ,
540
+ "ppbt" ,
541
+ ]
542
+ )
543
+ assert p .returncode == 0 , "Failed to install ppbt"
458
544
env = os .environ .copy ()
459
545
env ["RELENV_BUILDENV" ] = "yes"
460
546
env ["RELENV_DEBUG" ] = "yes"
@@ -472,6 +558,14 @@ def test_pip_install_salt_pip_dir(pipexec, build, build_version, arch):
472
558
473
559
474
560
def test_nox_virtualenvs (pipexec , build , tmp_path ):
561
+ p = subprocess .run (
562
+ [
563
+ str (pipexec ),
564
+ "install" ,
565
+ "ppbt" ,
566
+ ]
567
+ )
568
+ assert p .returncode == 0 , "Failed to install ppbt"
475
569
env = os .environ .copy ()
476
570
env ["RELENV_BUILDENV" ] = "yes"
477
571
env ["RELENV_DEBUG" ] = "yes"
@@ -555,6 +649,14 @@ def test_pip_install_m2crypto_system_ssl(pipexec, pyexec):
555
649
556
650
@pytest .mark .skip_unless_on_linux
557
651
def test_pip_install_m2crypto_relenv_ssl (pipexec , pyexec , build ):
652
+ p = subprocess .run (
653
+ [
654
+ str (pipexec ),
655
+ "install" ,
656
+ "ppbt" ,
657
+ ]
658
+ )
659
+ assert p .returncode == 0 , "Failed to install ppbt"
558
660
p = subprocess .run (
559
661
[
560
662
pyexec ,
@@ -628,6 +730,14 @@ def validate_shebang(path):
628
730
# XXX Mac support
629
731
@pytest .mark .skip_unless_on_linux
630
732
def test_moving_pip_installed_c_extentions (pipexec , build , minor_version ):
733
+ p = subprocess .run (
734
+ [
735
+ str (pipexec ),
736
+ "install" ,
737
+ "ppbt" ,
738
+ ]
739
+ )
740
+ assert p .returncode == 0 , "Failed to install ppbt"
631
741
env = os .environ .copy ()
632
742
env ["RELENV_DEBUG" ] = "yes"
633
743
env ["RELENV_BUILDENV" ] = "yes"
@@ -657,6 +767,15 @@ def test_moving_pip_installed_c_extentions(pipexec, build, minor_version):
657
767
@pytest .mark .skip_unless_on_linux
658
768
@pytest .mark .parametrize ("cryptography_version" , ["40.0.1" , "39.0.2" ])
659
769
def test_cryptography_rpath (pipexec , build , minor_version , cryptography_version ):
770
+ p = subprocess .run (
771
+ [
772
+ str (pipexec ),
773
+ "install" ,
774
+ "ppbt" ,
775
+ ]
776
+ )
777
+ assert p .returncode == 0 , "Failed to install ppbt"
778
+
660
779
def find_library (path , search ):
661
780
for root , dirs , files in os .walk (path ):
662
781
for fname in files :
@@ -723,6 +842,14 @@ def find_library(path, search):
723
842
724
843
@pytest .mark .skip_unless_on_linux
725
844
def test_install_pycurl (pipexec , build ):
845
+ p = subprocess .run (
846
+ [
847
+ str (pipexec ),
848
+ "install" ,
849
+ "ppbt" ,
850
+ ]
851
+ )
852
+ assert p .returncode == 0 , "Failed to install ppbt"
726
853
curlver = "8.0.1"
727
854
728
855
# Build curl and install it into the relenv environment
@@ -819,6 +946,14 @@ def build_dir(tmp_path):
819
946
],
820
947
)
821
948
def test_install_libgit2 (pipexec , build , minor_version , build_dir , versions ):
949
+ p = subprocess .run (
950
+ [
951
+ str (pipexec ),
952
+ "install" ,
953
+ "ppbt" ,
954
+ ]
955
+ )
956
+ assert p .returncode == 0 , "Failed to install ppbt"
822
957
823
958
buildscript = textwrap .dedent (
824
959
"""\
@@ -895,6 +1030,14 @@ def test_install_libgit2(pipexec, build, minor_version, build_dir, versions):
895
1030
896
1031
@pytest .mark .skip_unless_on_linux
897
1032
def test_install_python_ldap (pipexec , build ):
1033
+ p = subprocess .run (
1034
+ [
1035
+ str (pipexec ),
1036
+ "install" ,
1037
+ "ppbt" ,
1038
+ ]
1039
+ )
1040
+ assert p .returncode == 0 , "Failed to install ppbt"
898
1041
saslver = "2.1.28"
899
1042
ldapver = "2.5.14"
900
1043
0 commit comments