Skip to content

Commit 2741048

Browse files
committed
fix action
1 parent a26bd07 commit 2741048

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tests/benchmarks/scripts/measure_heap.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def connect_ssh():
2525
file = open(os.path.join('tests', 'benchmarks', 'scripts', 'id_ed25519'), 'w')
2626
file.write(os.environ['SSH_LOCAL_PRIV'])
2727
file.close()
28+
print('SSH ID written to file')
2829

2930
client = paramiko.SSHClient()
3031
client.get_host_keys().add('cicd.micro-ocpp.com', 'ssh-ed25519', paramiko.pkey.PKey.from_type_string('ssh-ed25519', base64.b64decode(os.environ['SSH_HOST_PUB'])))
@@ -115,7 +116,7 @@ def run_measurements():
115116
headers={'Authorization': 'Bearer ' + os.environ['TEST_DRIVER_KEY']},
116117
verify=False)
117118

118-
print(json.dumps(response.json(), indent=4))
119+
#print(json.dumps(response.json(), indent=4))
119120

120121
testcases = []
121122

@@ -159,7 +160,7 @@ def run_measurements():
159160
headers={'Authorization': 'Bearer ' + os.environ['TEST_DRIVER_KEY']},
160161
verify=False)
161162
print(f'Status code {response.status_code}')
162-
print(json.dumps(response.json(), indent=4))
163+
#print(json.dumps(response.json(), indent=4))
163164

164165
for testcase in testcases:
165166
print('\nRun ' + testcase['functional_block'] + ' > ' + testcase['description'] + ' (' + testcase['testcase_name'] + ')')
@@ -178,7 +179,7 @@ def run_measurements():
178179
headers={'Authorization': 'Bearer ' + os.environ['TEST_DRIVER_KEY']},
179180
verify=False)
180181
print(f'Status code {response.status_code}')
181-
print(json.dumps(response.json(), indent=4))
182+
#print(json.dumps(response.json(), indent=4))
182183
if response.status_code == 200:
183184
simulator_connected = True
184185
break
@@ -199,7 +200,7 @@ def run_measurements():
199200
headers={'Authorization': 'Bearer ' + os.environ['TEST_DRIVER_KEY']},
200201
verify=False)
201202
print(f'Status code {test_response.status_code}')
202-
print(json.dumps(test_response.json(), indent=4))
203+
#print(json.dumps(test_response.json(), indent=4))
203204

204205
mo_sim_response = requests.get('https://cicd.micro-ocpp.com:8443/api/memory/info',
205206
auth=(json.loads(os.environ['MO_SIM_API_CONFIG'])['user'],
@@ -214,7 +215,7 @@ def run_measurements():
214215
headers={'Authorization': 'Bearer ' + os.environ['TEST_DRIVER_KEY']},
215216
verify=False)
216217
print(f'Status code {response.status_code}')
217-
print(json.dumps(response.json(), indent=4))
218+
#print(json.dumps(response.json(), indent=4))
218219

219220
cleanup_simulator()
220221

@@ -247,6 +248,8 @@ def run_measurements():
247248

248249
def run_measurements_and_retry():
249250

251+
print(f'Show {os.environ['SSH_LOCAL_PRIV'][0]}, {os.environ['SSH_LOCAL_PRIV'][1]}, {os.environ['SSH_LOCAL_PRIV'][len(os.environ['SSH_LOCAL_PRIV']-2)]}, {os.environ['SSH_LOCAL_PRIV'][len(os.environ['SSH_LOCAL_PRIV'])-1]} end')
252+
250253
if ( 'TEST_DRIVER_URL' not in os.environ or
251254
'TEST_DRIVER_CONFIG' not in os.environ or
252255
'TEST_DRIVER_KEY' not in os.environ or
@@ -275,7 +278,7 @@ def run_measurements_and_retry():
275278
headers={'Authorization': 'Bearer ' + os.environ['TEST_DRIVER_KEY']},
276279
verify=False)
277280
print(f'Status code {response.status_code}')
278-
print(json.dumps(response.json(), indent=4))
281+
#print(json.dumps(response.json(), indent=4))
279282

280283
cleanup_simulator()
281284

0 commit comments

Comments
 (0)