File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -22,4 +22,3 @@ collect_id: "workflow_run"
22
22
prom_url : " http://localhost:9090"
23
23
pipeline_name : " Equinix_Pipeline"
24
24
stress_test_script_path : " /opt/kepler/e2e/tools/validator/scripts/stressor.sh"
25
- total_time_in_seconds : " {{ lookup('env', 'TOTAL_RUNTIME_SECONDS') }}"
Original file line number Diff line number Diff line change 45
45
vm_user : " {{ hostvars['localhost']['ssh_tunnel_user'] }}"
46
46
vm_name : " {{ hostvars['localhost']['ssh_tunnel_vm'] }}"
47
47
ssh_key_path : " {{ hostvars['localhost']['ssh_key_path'] }}"
48
- total_time_in_seconds : " {{ hostvars['localhost']['total_time_in_seconds'] }}"
49
48
ansible.builtin.shell : |
50
49
export PATH=$PATH:/usr/local/bin
51
50
echo $PATH
63
62
# Stress
64
63
chmod +x {{ stress_test_script_path }}
65
64
export START_TIME=$(date +%s)
65
+ echo "total runtime seconds: {{ total_runtime_seconds }}"
66
66
for i in {1..{{ stress_iterations }}}; do
67
67
echo "Iteration: $i"
68
68
# ssh to the vm and run the stress_test_script
69
- ssh -i {{ ssh_key_path }} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null {{ vm_user }}@{{ vm_name }} /tmp/stress_test.sh -t {{ total_time_in_seconds }}
69
+ ssh -i {{ ssh_key_path }} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null {{ vm_user }}@{{ vm_name }} /tmp/stress_test.sh -t {{ total_runtime_seconds }}
70
70
done
71
71
export END_TIME=$(date +%s)
72
72
You can’t perform that action at this time.
0 commit comments