Skip to contentSkip to conversation

tests/acceptance/migration: Add the 'migration' tag

PATCH In review Philippe Mathieu-Daudé 2 participants 3 messages Feb 4, 2020 – Feb 6, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/acceptance/migration: Add the 'migration' tag

By using an Avocado tag, we can run all tests described by that tag as once:

  $ avocado --show=app run -t migration tests/acceptance/
  JOB ID     : 165477737509503fcfa6d7108057a0a18f2a6559
  JOB LOG    : avocado/job-results/job-2020-02-04T17.29-1654777/job.log
   (1/3) tests/acceptance/migration.py:Migration.test_migration_with_tcp_localhost: PASS (0.38 s)
   (2/3) tests/acceptance/migration.py:Migration.test_migration_with_unix: PASS (0.33 s)
   (3/3) tests/acceptance/migration.py:Migration.test_migration_with_exec: PASS (0.07 s)
  RESULTS    : PASS 3 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

---
Based-on: <[email protected]>
https://www.mail-archive.com/[email protected]/msg676230.html

---
 tests/acceptance/migration.py | 3 +++
 1 file changed, 3 insertions(+)
tests/acceptance/migration.py +3 -0
index 41b13b9e0d..b342cabe07 100644
@@ -20,6 +20,9 @@ from avocado.utils.path import find_command
 
 
 class Migration(Test):
+    """
+    :avocado: tags=migration
+    """
 
     timeout = 10
 
Signature · 1 line
2.21.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Philippe Mathieu-Daudé

By using an Avocado tag, we can run all tests described by that tag as once:

   $ avocado --show=app run -t migration tests/acceptance/
   JOB ID     : 165477737509503fcfa6d7108057a0a18f2a6559
   JOB LOG    : avocado/job-results/job-2020-02-04T17.29-1654777/job.log
    (1/3) tests/acceptance/migration.py:Migration.test_migration_with_tcp_localhost: PASS (0.38 s)
    (2/3) tests/acceptance/migration.py:Migration.test_migration_with_unix: PASS (0.33 s)
    (3/3) tests/acceptance/migration.py:Migration.test_migration_with_exec: PASS (0.07 s)
   RESULTS    : PASS 3 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
Quoted 7 lines

---
Based-on: <[email protected]>
https://www.mail-archive.com/[email protected]/msg676230.html

---
  tests/acceptance/migration.py | 3 +++
  1 file changed, 3 insertions(+)
Quoted 15 lines
tests/acceptance/migration.py +3 -0
index 41b13b9e0d..b342cabe07 100644
@@ -20,6 +20,9 @@ from avocado.utils.path import find_command
 
 
  class Migration(Test):
+    """
+    :avocado: tags=migration
+    """
 
      timeout = 10
 
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 25 lines · Philippe Mathieu-Daudé

By using an Avocado tag, we can run all tests described by that tag as once:

   $ avocado --show=app run -t migration tests/acceptance/
   JOB ID     : 165477737509503fcfa6d7108057a0a18f2a6559
   JOB LOG    : avocado/job-results/job-2020-02-04T17.29-1654777/job.log
    (1/3) tests/acceptance/migration.py:Migration.test_migration_with_tcp_localhost: PASS (0.38 s)
    (2/3) tests/acceptance/migration.py:Migration.test_migration_with_unix: PASS (0.33 s)
    (3/3) tests/acceptance/migration.py:Migration.test_migration_with_exec: PASS (0.07 s)
   RESULTS    : PASS 3 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

---
Based-on: <[email protected]>
https://www.mail-archive.com/[email protected]/msg676230.html

---
  tests/acceptance/migration.py | 3 +++
  1 file changed, 3 insertions(+)
tests/acceptance/migration.py +0 -0
index 41b13b9e0d..b342cabe07 100644

tests/acceptance/migration.py from avocado.utils.path import find_command · line 28

Quoted 9 lines
tests/acceptance/migration.py +3 -0
@@ -20,6 +20,9 @@ from avocado.utils.path import find_command
 
 
  class Migration(Test):
+    """
+    :avocado: tags=migration
+    """
 
      timeout = 10
 

Patch applied to my python-next tree:
https://gitlab.com/philmd/qemu/commits/python-next