Skip to content

Commit fb5b374

Browse files
authored
Merge pull request #219 from richm/tags-for-nvme-scsi
tag tests that use NVME and SCSI
2 parents 35fe83d + 4398706 commit fb5b374

File tree

77 files changed

+309
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+309
-1
lines changed

tests/scripts/generate_tests.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@
2424
---
2525
# This file was generated by generate_tests.py
2626
- hosts: all
27+
tags:
28+
- tests::%s
2729
tasks:
2830
- name: set disk interface for test
2931
set_fact:
3032
storage_test_use_interface: "%s"
3133
3234
- import_playbook: %s
35+
tags:
36+
- tests::%s
3337
"""
3438

3539
# list of interfaces which will have their files generated
@@ -47,7 +51,7 @@ def generate_file(org_filename, iface):
4751
gen_path_file = path.join(TARGET_PATH, generate_filename(org_filename, iface))
4852

4953
with open(gen_path_file, "w") as f:
50-
f.write(TEST_FILE_CONTENTS % (iface, org_filename))
54+
f.write(TEST_FILE_CONTENTS % (iface, iface, org_filename, iface))
5155

5256

5357
# will new test be generated based on this item?
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
# This file was generated by generate_tests.py
33
- hosts: all
4+
tags:
5+
- tests::nvme
46
tasks:
57
- name: set disk interface for test
68
set_fact:
79
storage_test_use_interface: "nvme"
810

911
- import_playbook: tests_change_disk_fs.yml
12+
tags:
13+
- tests::nvme
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
# This file was generated by generate_tests.py
33
- hosts: all
4+
tags:
5+
- tests::scsi
46
tasks:
57
- name: set disk interface for test
68
set_fact:
79
storage_test_use_interface: "scsi"
810

911
- import_playbook: tests_change_disk_fs.yml
12+
tags:
13+
- tests::scsi
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
# This file was generated by generate_tests.py
33
- hosts: all
4+
tags:
5+
- tests::nvme
46
tasks:
57
- name: set disk interface for test
68
set_fact:
79
storage_test_use_interface: "nvme"
810

911
- import_playbook: tests_change_disk_mount.yml
12+
tags:
13+
- tests::nvme
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
# This file was generated by generate_tests.py
33
- hosts: all
4+
tags:
5+
- tests::scsi
46
tasks:
57
- name: set disk interface for test
68
set_fact:
79
storage_test_use_interface: "scsi"
810

911
- import_playbook: tests_change_disk_mount.yml
12+
tags:
13+
- tests::scsi
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
# This file was generated by generate_tests.py
33
- hosts: all
4+
tags:
5+
- tests::nvme
46
tasks:
57
- name: set disk interface for test
68
set_fact:
79
storage_test_use_interface: "nvme"
810

911
- import_playbook: tests_change_fs.yml
12+
tags:
13+
- tests::nvme
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
# This file was generated by generate_tests.py
33
- hosts: all
4+
tags:
5+
- tests::scsi
46
tasks:
57
- name: set disk interface for test
68
set_fact:
79
storage_test_use_interface: "scsi"
810

911
- import_playbook: tests_change_fs.yml
12+
tags:
13+
- tests::scsi
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
# This file was generated by generate_tests.py
33
- hosts: all
4+
tags:
5+
- tests::nvme
46
tasks:
57
- name: set disk interface for test
68
set_fact:
79
storage_test_use_interface: "nvme"
810

911
- import_playbook: tests_change_fs_use_partitions.yml
12+
tags:
13+
- tests::nvme
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
# This file was generated by generate_tests.py
33
- hosts: all
4+
tags:
5+
- tests::scsi
46
tasks:
57
- name: set disk interface for test
68
set_fact:
79
storage_test_use_interface: "scsi"
810

911
- import_playbook: tests_change_fs_use_partitions.yml
12+
tags:
13+
- tests::scsi
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
22
# This file was generated by generate_tests.py
33
- hosts: all
4+
tags:
5+
- tests::nvme
46
tasks:
57
- name: set disk interface for test
68
set_fact:
79
storage_test_use_interface: "nvme"
810

911
- import_playbook: tests_change_mount.yml
12+
tags:
13+
- tests::nvme

0 commit comments

Comments
 (0)