Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# Execute ping and check the log.
#-----------------------------------------

- name: Get an unique timestamp to feed to testname_unique
set_fact:
unique_timestamp: "{{ lookup('pipe','date +%Y-%m-%d-%H:%M:%S') }}"
- include_vars: "vars/run_ping_test_vars.yml"

- name: Start log analyser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# Send some TCP packets.
#-----------------------------------------

- name: Get an unique timestamp to feed to testname_unique
set_fact:
unique_timestamp: "{{ lookup('pipe','date +%Y-%m-%d-%H:%M:%S') }}"
- include_vars: "vars/run_ptf_test_vars.yml"

- block:
Expand Down
3 changes: 3 additions & 0 deletions ansible/roles/test/tasks/run_command_with_log_analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# 3) Run cleanup if needed.
#-----------------------------------------

- name: Get an unique timestamp to feed to testname_unique
set_fact:
unique_timestamp: "{{lookup('pipe','date +%Y-%m-%d-%H:%M:%S')}}"
- include_vars: "vars/run_config_test_vars.yml"

- block:
Expand Down
3 changes: 3 additions & 0 deletions ansible/roles/test/tasks/run_loganalyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# or analyze-phase of loganalyzer.
#-----------------------------------------

- name: Get an unique timestamp to feed to testname_unique
set_fact:
unique_timestamp: "{{lookup('pipe','date +%Y-%m-%d-%H:%M:%S')}}"
- include_vars: "vars/run_loganalyzer_vars.yml"

- name: Initialize loganalizer. Put start marker to log file.
Expand Down
2 changes: 1 addition & 1 deletion ansible/vars/run_config_test_vars.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

testname_unique: "{{ testname }}.{{lookup('pipe','date +%Y-%m-%d-%H:%M:%S')}}"
testname_unique: "{{ testname }}.{{ unique_timestamp }}"

test_out_dir: "{{ out_dir }}/{{ testname_unique }}"
loganalyzer_init: roles/test/files/tools/loganalyzer/loganalyzer_init.yml
Expand Down
2 changes: 1 addition & 1 deletion ansible/vars/run_loganalyzer_vars.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

testname_unique: "{{ testname }}.{{lookup('pipe','date +%Y-%m-%d-%H:%M:%S')}}"
testname_unique: "{{ testname }}.{{ unique_timestamp }}"

test_out_dir: "{{ out_dir }}/{{ testname_unique }}"
loganalyzer_init: roles/test/files/tools/loganalyzer/loganalyzer_init.yml
Expand Down
2 changes: 1 addition & 1 deletion ansible/vars/run_ping_test_vars.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

testname_unique: "{{ testname }}.{{lookup('pipe','date +%Y-%m-%d-%H:%M:%S')}}"
testname_unique: "{{ testname }}.{{ unique_timestamp }}"

test_out_dir: "{{ out_dir }}/{{ testname_unique }}"
summary_file: "summary.loganalysis.{{ testname_unique }}.log"
Expand Down
2 changes: 1 addition & 1 deletion ansible/vars/run_ptf_test_vars.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

testname_unique: "{{ testname }}.{{lookup('pipe','date +%Y-%m-%d-%H:%M:%S')}}"
testname_unique: "{{ testname }}.{{ unique_timestamp }}"

test_out_dir: "{{ out_dir }}/{{ testname_unique }}"
summary_file: "summary.loganalysis.{{ testname_unique }}.log"
Expand Down