[gnome-build-meta/cfoch/openqa_templates: 8/9] openqa: Save state of resulting installation as an image




commit aff69c9c6ea26a80a4c7f5328df09d32151e3a28
Author: Fabian Orccon <cfoch fabian gmail com>
Date:   Fri Oct 22 03:41:15 2021 +0200

    openqa: Save state of resulting installation as an image

 openqa/templates              | 22 ++++++++++++++++++----
 openqa/tests/gnome_desktop.pm |  5 +++++
 2 files changed, 23 insertions(+), 4 deletions(-)
---
diff --git a/openqa/templates b/openqa/templates
index d5e69c992..e46227672 100755
--- a/openqa/templates
+++ b/openqa/templates
@@ -3,7 +3,20 @@
 # GNOME OS OpenQA Templates
 #
 {
-  JobTemplates => [],
+  JobTemplates => [
+                    {
+                      group_name => "gnomeos-live",
+                      prio => 50,
+                      machine => { name => "qemu_x86_64" },
+                      product => {
+                        arch => "x86_64",
+                        distri => "gnomeos",
+                        flavor => "iso",
+                        version => "master"
+                      },
+                      test_suite => { name => "gnomeos_install" }
+                    },
+                  ],
   Machines     => [
                     {
                       backend => "qemu",
@@ -34,11 +47,12 @@
                   ],
   TestSuites   => [
                     {
-                      description => "gnome os CI",
-                      name => "gnomeos",
+                      name => "gnomeos_install",
+                      description => "GNOME OS installation",
                       settings => [
                         { key => "DESKTOP", value => "gnomeos" },
-                        { key => "FLAVOR", value => "iso" },
+                        { key => "STORE_HDD_1", value => "disk_%FLAVOR%_%MACHINE%.qcow2" },
+                        { key => "PUBLISH_HDD_1", value => "disk_%FLAVOR%_%MACHINE%.qcow2" },
                       ],
                     },
                   ],
diff --git a/openqa/tests/gnome_desktop.pm b/openqa/tests/gnome_desktop.pm
index 16f459b96..025a09e13 100644
--- a/openqa/tests/gnome_desktop.pm
+++ b/openqa/tests/gnome_desktop.pm
@@ -6,6 +6,11 @@ sub run {
     my $self = shift;
     assert_and_click('gnome_desktop_tour', timeout => 60, 'left');
     assert_screen('gnome_desktop_desktop', 60);
+
+    send_key("alt-f2", 1);
+
+    type_string("poweroff\n");
+    assert_shutdown(180);
 }
 
 sub test_flags {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]