Only print testing warnings if test command is set

This commit is contained in:
Joe Rickerby
2021-01-05 18:56:07 +00:00
parent e215446283
commit 0df5e1295f
+1 -1
View File
@@ -332,6 +332,7 @@ def build(options: BuildOptions) -> None:
log.step_end() log.step_end()
if options.test_command:
machine_arch = platform.machine() machine_arch = platform.machine()
testing_archs: List[str] = [] testing_archs: List[str] = []
@@ -363,7 +364,6 @@ def build(options: BuildOptions) -> None:
else: else:
testing_archs = ['arm64'] testing_archs = ['arm64']
if options.test_command and len(testing_archs) > 0:
for testing_arch in testing_archs: for testing_arch in testing_archs:
log.step('Testing wheel...' if testing_arch == machine_arch else f'Testing wheel on {testing_arch}...') log.step('Testing wheel...' if testing_arch == machine_arch else f'Testing wheel on {testing_arch}...')