Skip to content

Commit ff574c0

Browse files
committed
PEP8 compliance
1 parent d548eac commit ff574c0

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

tests/soak/setup_all_versions.py

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,33 @@
44

55
PYTHON_SOAK_TEST_BRANCH = 'dev_otel_agent_soak_test'
66

7-
LIBRDKAFKA_VERSIONS=[
8-
#'2.11.1'
9-
#'2.10.1',
10-
'2.8.0',
11-
'2.6.1',
12-
'2.5.3',
13-
'2.4.0',
14-
'2.3.0',
15-
'2.2.0',
16-
'2.1.1',
17-
'2.0.2'
7+
LIBRDKAFKA_VERSIONS = [
8+
# '2.11.1'
9+
# '2.10.1',
10+
'2.8.0',
11+
'2.6.1',
12+
'2.5.3',
13+
'2.4.0',
14+
'2.3.0',
15+
'2.2.0',
16+
'2.1.1',
17+
'2.0.2'
1818
]
1919

20-
PYTHON_VERSIONS=[
21-
#'2.11.0'
22-
#'2.10.1',
23-
'2.8.0',
24-
'2.6.1',
25-
'2.5.3',
26-
'2.4.0',
27-
'2.3.0',
28-
'2.2.0',
29-
'2.1.1',
30-
'2.0.2'
20+
PYTHON_VERSIONS = [
21+
# '2.11.0'
22+
# '2.10.1',
23+
'2.8.0',
24+
'2.6.1',
25+
'2.5.3',
26+
'2.4.0',
27+
'2.3.0',
28+
'2.2.0',
29+
'2.1.1',
30+
'2.0.2'
3131
]
3232

33+
3334
def run(command):
3435
print(f'Running command: {command}')
3536
env = os.environ.copy()
@@ -38,15 +39,17 @@ def run(command):
3839
if result.returncode != 0:
3940
raise Exception(f'Command failed: {command}, result: {result.returncode}')
4041

42+
4143
if __name__ == '__main__':
4244
for i, librdkafka_version in enumerate(LIBRDKAFKA_VERSIONS):
4345
python_version = PYTHON_VERSIONS[i]
44-
folder_name = f'confluent-kafka-python_{librdkafka_version.replace('.', '_')}'
46+
librdkafka_version_folder_name = librdkafka_version.replace('.', '_')
47+
folder_name = f'confluent-kafka-python_{librdkafka_version_folder_name}'
4548
if os.path.exists(folder_name):
4649
print(f'Skipping \'{folder_name}\', already exists.')
4750
continue
4851

49-
run(f'git clone https://github.com/confluentinc/confluent-kafka-python.git')
52+
run('git clone https://github.com/confluentinc/confluent-kafka-python.git')
5053
run(f'mv confluent-kafka-python {folder_name}')
5154
run(f'cd {folder_name} && git checkout {PYTHON_SOAK_TEST_BRANCH}')
5255
run(f'cd {folder_name}/tests/soak && ./build.sh v{librdkafka_version} v{python_version}')

0 commit comments

Comments
 (0)