Hello community,

here is the log from the commit of package yast2-sound for openSUSE:Factory 
checked in at 2020-05-01 11:08:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-sound (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-sound.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-sound"

Fri May  1 11:08:44 2020 rev:97 rq:799139 version:4.2.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-sound/yast2-sound.changes  2020-04-22 
20:42:44.230187613 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-sound.new.2738/yast2-sound.changes        
2020-05-01 11:09:09.863300872 +0200
@@ -1,0 +2,7 @@
+Wed Apr 29 14:19:50 UTC 2020 - [email protected]
+
+- avoid attempts to build sound card database if no kernel
+  available (related to jsc#SLE-11862)
+- 4.2.4
+
+-------------------------------------------------------------------
@@ -4 +11 @@
-- jsc#SLE-11873
+- jsc#SLE-11862

Old:
----
  yast2-sound-4.2.3.tar.bz2

New:
----
  yast2-sound-4.2.4.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-sound.spec ++++++
--- /var/tmp/diff_new_pack.m2Z601/_old  2020-05-01 11:09:11.139303647 +0200
+++ /var/tmp/diff_new_pack.m2Z601/_new  2020-05-01 11:09:11.139303647 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-sound
-Version:        4.2.3
+Version:        4.2.4
 Release:        0
 Summary:        YaST2 - Sound Configuration
 License:        GPL-2.0-or-later
@@ -29,7 +29,6 @@
 BuildRequires:  alsa-devel
 BuildRequires:  doxygen
 BuildRequires:  gcc-c++
-BuildRequires:  kernel-default
 BuildRequires:  libtool
 BuildRequires:  perl-XML-Writer
 BuildRequires:  ruby
@@ -39,6 +38,11 @@
 BuildRequires:  yast2-devtools >= 4.2.2
 BuildRequires:  yast2-testsuite
 
+# workaround for OS builds, see jsc#SLE-11862
+%ifnarch i586
+BuildRequires:  kernel-default
+%endif
+
 # Fixed handling of Kernel modules loaded on boot
 Requires:       alsa
 # For proc_modules.scr

++++++ yast2-sound-4.2.3.tar.bz2 -> yast2-sound-4.2.4.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/data/generate_soundcard_db.rb 
new/yast2-sound-4.2.4/data/generate_soundcard_db.rb
--- old/yast2-sound-4.2.3/data/generate_soundcard_db.rb 2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/data/generate_soundcard_db.rb 2020-04-30 
09:40:41.000000000 +0200
@@ -4,9 +4,12 @@
 require File.join(File.dirname(__FILE__), "alsa_drivers.rb")
 require File.join(File.dirname(__FILE__), "sound_db_generator.rb")
 
-# generate the database for the first kernel found
-kernel_path = Dir['/lib/modules/*'].first + '/kernel/sound/'
-
-# write the database to a file
-puts SoundCardDBGenerator.generate_sound_card_db kernel_path
+if Dir['/lib/modules/*'].first.nil?
+  STDERR.puts "No kernel installed, skipping building of the sound card 
database"
+else
+  # generate the database for the first kernel found
+  kernel_path = Dir['/lib/modules/*'].first + '/kernel/sound/'
 
+  # write the database to a file
+  puts SoundCardDBGenerator.generate_sound_card_db kernel_path
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/package/yast2-sound.changes 
new/yast2-sound-4.2.4/package/yast2-sound.changes
--- old/yast2-sound-4.2.3/package/yast2-sound.changes   2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/package/yast2-sound.changes   2020-04-30 
09:40:41.000000000 +0200
@@ -1,7 +1,14 @@
 -------------------------------------------------------------------
+Wed Apr 29 14:19:50 UTC 2020 - [email protected]
+
+- avoid attempts to build sound card database if no kernel
+  available (related to jsc#SLE-11862)
+- 4.2.4
+
+-------------------------------------------------------------------
 Thu Apr 16 08:53:21 UTC 2020 - Michal Filka <[email protected]>
 
-- jsc#SLE-11873
+- jsc#SLE-11862
   - dropped conditional build to unify SLE and OS builds
 - 4.2.3 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/package/yast2-sound.spec 
new/yast2-sound-4.2.4/package/yast2-sound.spec
--- old/yast2-sound-4.2.3/package/yast2-sound.spec      2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/package/yast2-sound.spec      2020-04-30 
09:40:41.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-sound
-Version:        4.2.3
+Version:        4.2.4
 Release:        0
 Summary:        YaST2 - Sound Configuration
 License:        GPL-2.0-or-later
@@ -29,7 +29,6 @@
 BuildRequires:  alsa-devel
 BuildRequires:  doxygen
 BuildRequires:  gcc-c++
-BuildRequires:  kernel-default
 BuildRequires:  libtool
 BuildRequires:  perl-XML-Writer
 BuildRequires:  ruby
@@ -39,6 +38,11 @@
 BuildRequires:  yast2-devtools >= 4.2.2
 BuildRequires:  yast2-testsuite
 
+# workaround for OS builds, see jsc#SLE-11862
+%ifnarch i586
+BuildRequires:  kernel-default
+%endif
+
 # Fixed handling of Kernel modules loaded on boot
 Requires:       alsa
 # For proc_modules.scr
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/testsuite/Makefile.am 
new/yast2-sound-4.2.4/testsuite/Makefile.am
--- old/yast2-sound-4.2.3/testsuite/Makefile.am 2020-04-17 17:01:12.000000000 
+0200
+++ new/yast2-sound-4.2.4/testsuite/Makefile.am 1970-01-01 01:00:00.000000000 
+0100
@@ -1,21 +0,0 @@
-#
-# Makefile.am for .../testsuite
-#
-# Do not edit this file (Makefile.am) as it will be overwritten!
-#
-
-AUTOMAKE_OPTIONS = dejagnu
-EXTRA_DIST = $(wildcard tests/*.out) $(wildcard tests/*.err) $(wildcard 
tests/*.rb)
-
-testsuite_prepare = @ydatadir@/testsuite/Makefile.testsuite
-
-all-local: $(testsuite_prepare)
-       make -f $(testsuite_prepare) RPMNAME=$(RPMNAME) srcdir=$(srcdir)
-
-clean-local: $(testsuite_prepare)
-       make -f $(testsuite_prepare) RPMNAME=$(RPMNAME) srcdir=$(srcdir) clean
-
-check-local: $(testsuite_prepare)
-       make -f $(testsuite_prepare) RPMNAME=$(RPMNAME) srcdir=$(srcdir) check
-
-# EOF
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/testsuite/tests/export_volume.out 
new/yast2-sound-4.2.4/testsuite/tests/export_volume.out
--- old/yast2-sound-4.2.3/testsuite/tests/export_volume.out     2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/testsuite/tests/export_volume.out     1970-01-01 
01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-Return []
-Return []
-Return [[$["mute":false, "name":"Master", "volume":80], $["mute":false, 
"name":"CD", "volume":90]]]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/testsuite/tests/export_volume.rb 
new/yast2-sound-4.2.4/testsuite/tests/export_volume.rb
--- old/yast2-sound-4.2.3/testsuite/tests/export_volume.rb      2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/testsuite/tests/export_volume.rb      1970-01-01 
01:00:00.000000000 +0100
@@ -1,21 +0,0 @@
-# encoding: utf-8
-
-module Yast
-  class ExportVolumeClient < Client
-    def main
-      # testedfiles: Sound.ycp
-      Yast.include self, "testsuite.rb"
-
-      Yast.import "Sound"
-
-      @input = [[["Master", 80, false], ["CD", 90, false]]]
-      TEST(lambda { Sound.ExportVolumeSettings(nil) }, [], nil)
-      TEST(lambda { Sound.ExportVolumeSettings([]) }, [], nil)
-      TEST(lambda { Sound.ExportVolumeSettings(@input) }, [], nil)
-
-      nil
-    end
-  end
-end
-
-Yast::ExportVolumeClient.new.main
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-sound-4.2.3/testsuite/tests/filter_configured.out 
new/yast2-sound-4.2.4/testsuite/tests/filter_configured.out
--- old/yast2-sound-4.2.3/testsuite/tests/filter_configured.out 2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/testsuite/tests/filter_configured.out 1970-01-01 
01:00:00.000000000 +0100
@@ -1,7 +0,0 @@
-Return []
-Return [$["device":"SB Live! EMU10000", "unique_key":"CvwD.k1dGGUobcK9", 
"vendor":"Creative Labs", "vendor_id":69890]]
-Return []
-Return [$["device":"SB Live! EMU10000", "unique_key":"CvwD.k1dGGUobcK9", 
"vendor":"Creative Labs", "vendor_id":69890]]
-Return []
-Return [$["bus":"PCI", "class_id":4, "device":"SB Live! EMU10000", 
"device_id":65538, "drivers":[$["active":false, "modprobe":true, 
"modules":[["emu10k1", ""]]]], "resource":$["io":[$["active":true, "length":0, 
"mode":"rw", "start":49152]], "irq":[$["count":1146364, "enabled":true, 
"irq":10]]], "rev":"7", "sub_class_id":1, "sub_device":"CT4830 SBLive! Value", 
"sub_device_id":98342, "sub_vendor":"Creative Labs", "sub_vendor_id":69890, 
"unique_key":"CvwD.k1dGGUobcK9", "vendor":"Creative Labs", "vendor_id":69890]]
-Return [$["bus":"PCI", "class_id":4, "device":"SB Live! EMU10000", 
"device_id":65538, "drivers":[$["active":false, "modprobe":true, 
"modules":[["emu10k1", ""]]]], "resource":$["io":[$["active":true, "length":0, 
"mode":"rw", "start":49152]], "irq":[$["count":1146364, "enabled":true, 
"irq":10]]], "rev":"7", "sub_class_id":1, "sub_device":"CT4830 SBLive! Value", 
"sub_device_id":98342, "sub_vendor":"Creative Labs", "sub_vendor_id":69890, 
"unique_key":"CvwD.k1dGGUobcK9", "vendor":"Creative Labs", "vendor_id":69890], 
$["bus":"PCI", "class_id":4, "device":"AC97 Audio Controller", 
"device_id":77912, "drivers":[$["active":false, "modprobe":true, 
"modules":[["via82cxxx_audio", ""]]]], "resource":$["io":[$["active":true, 
"length":0, "mode":"rw", "start":55296], $["active":true, "length":0, 
"mode":"rw", "start":56320], $["active":true, "length":0, "mode":"rw", 
"start":57344]], "irq":[$["count":1146364, "enabled":true, "irq":10]]], 
"rev":"32", "sub_class_id":1, "sub_device_id":100613, "sub_vendor":"FIRST 
INTERNATIONAL Computer Inc", "sub_vendor_id":70921, 
"unique_key":"hB6S.CxYdteFTb8D", "vendor":"VIA Technologies, Inc.", 
"vendor_id":69894]]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yast2-sound-4.2.3/testsuite/tests/filter_configured.rb 
new/yast2-sound-4.2.4/testsuite/tests/filter_configured.rb
--- old/yast2-sound-4.2.3/testsuite/tests/filter_configured.rb  2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/testsuite/tests/filter_configured.rb  1970-01-01 
01:00:00.000000000 +0100
@@ -1,167 +0,0 @@
-# encoding: utf-8
-
-# File:
-#  test_routines.ycp
-#
-# Module:
-#  Sound
-#
-# Summary:
-#  Tests for sound includes.
-#
-# Authors:
-#  Dan Meszaros <[email protected]>, 2001
-#
-# Tests for sound routines.
-module Yast
-  class FilterConfiguredClient < Client
-    def main
-      Yast.import "UI"
-      # testedfiles: Sound.ycp sound/routines.ycp
-
-      Yast.include self, "testsuite.rb"
-
-      @READ_I = { "target" => { "size" => -1, "tmpdir" => "/tmp" } }
-
-      TESTSUITE_INIT([@READ_I], nil)
-      Yast.include self, "sound/routines.rb"
-
-      @save_info = []
-      @cards = []
-
-      # in card entries we care about nothing but unique_key
-
-      # empty save_info, no cards
-      TEST(lambda { filter_configured(@save_info, @cards) }, [], nil)
-
-      # one detected, no configured cards
-      @save_info = []
-      @cards = [
-        {
-          "device"     => "SB Live! EMU10000",
-          "unique_key" => "CvwD.k1dGGUobcK9",
-          "vendor"     => "Creative Labs",
-          "vendor_id"  => 69890
-        }
-      ]
-      TEST(lambda { filter_configured(@save_info, @cards) }, [], nil)
-
-      # detected and configured card
-      @save_info = [
-        { "alias" => "", "module" => "", "unique_key" => "CvwD.k1dGGUobcK9" }
-      ]
-      TEST(lambda { filter_configured(@save_info, @cards) }, [], nil)
-
-      # detected but different that configured
-
-      @save_info = [
-        { "alias" => "", "module" => "", "unique_key" => "cVWd.K1DgguOBCk9" }
-      ]
-      TEST(lambda { filter_configured(@save_info, @cards) }, [], nil)
-
-      # two detected cards
-
-      @cards = [
-        {
-          "bus"           => "PCI",
-          "class_id"      => 4,
-          "device"        => "SB Live! EMU10000",
-          "device_id"     => 65538,
-          "drivers"       => [
-            {
-              "active"   => false,
-              "modprobe" => true,
-              "modules"  => [["emu10k1", ""]]
-            }
-          ],
-          "resource"      => {
-            "io"  => [
-              {
-                "active" => true,
-                "length" => 0,
-                "mode"   => "rw",
-                "start"  => 49152
-              }
-            ],
-            "irq" => [{ "count" => 1146364, "enabled" => true, "irq" => 10 }]
-          },
-          "rev"           => "7",
-          "sub_class_id"  => 1,
-          "sub_device"    => "CT4830 SBLive! Value",
-          "sub_device_id" => 98342,
-          "sub_vendor"    => "Creative Labs",
-          "sub_vendor_id" => 69890,
-          "unique_key"    => "CvwD.k1dGGUobcK9",
-          "vendor"        => "Creative Labs",
-          "vendor_id"     => 69890
-        },
-        {
-          "bus"           => "PCI",
-          "class_id"      => 4,
-          "device"        => "AC97 Audio Controller",
-          "device_id"     => 77912,
-          "drivers"       => [
-            {
-              "active"   => false,
-              "modprobe" => true,
-              "modules"  => [["via82cxxx_audio", ""]]
-            }
-          ],
-          "resource"      => {
-            "io"  => [
-              {
-                "active" => true,
-                "length" => 0,
-                "mode"   => "rw",
-                "start"  => 55296
-              },
-              {
-                "active" => true,
-                "length" => 0,
-                "mode"   => "rw",
-                "start"  => 56320
-              },
-              {
-                "active" => true,
-                "length" => 0,
-                "mode"   => "rw",
-                "start"  => 57344
-              }
-            ],
-            "irq" => [{ "count" => 1146364, "enabled" => true, "irq" => 10 }]
-          },
-          "rev"           => "32",
-          "sub_class_id"  => 1,
-          "sub_device_id" => 100613,
-          "sub_vendor"    => "FIRST INTERNATIONAL Computer Inc",
-          "sub_vendor_id" => 70921,
-          "unique_key"    => "hB6S.CxYdteFTb8D",
-          "vendor"        => "VIA Technologies, Inc.",
-          "vendor_id"     => 69894
-        }
-      ]
-      # both configured
-      @save_info = [
-        { "unique_key" => "hB6S.CxYdteFTb8D" },
-        { "unique_key" => "CvwD.k1dGGUobcK9" }
-      ]
-
-      TEST(lambda { filter_configured(@save_info, @cards) }, [], nil)
-
-      # first not configured
-      @save_info = [
-        { "unique_key" => "hB6S.CxYdteFTb8D" },
-        { "unique_key" => "cVWd.K1DgguOBCk9" }
-      ]
-      TEST(lambda { filter_configured(@save_info, @cards) }, [], nil)
-
-      # none configured
-      @save_info = []
-      TEST(lambda { filter_configured(@save_info, @cards) }, [], nil)
-
-      nil
-    end
-  end
-end
-
-Yast::FilterConfiguredClient.new.main
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/testsuite/tests/get_card_label.out 
new/yast2-sound-4.2.4/testsuite/tests/get_card_label.out
--- old/yast2-sound-4.2.3/testsuite/tests/get_card_label.out    2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/testsuite/tests/get_card_label.out    1970-01-01 
01:00:00.000000000 +0100
@@ -1,5 +0,0 @@
-Return 
-Return CT4830 SBLive! Value
-Return CT4830 SBLive! Value
-Return Creative Labs
-Return CT4830 SBLive! Value
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/testsuite/tests/get_card_label.rb 
new/yast2-sound-4.2.4/testsuite/tests/get_card_label.rb
--- old/yast2-sound-4.2.3/testsuite/tests/get_card_label.rb     2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/testsuite/tests/get_card_label.rb     1970-01-01 
01:00:00.000000000 +0100
@@ -1,168 +0,0 @@
-# encoding: utf-8
-
-module Yast
-  class GetCardLabelClient < Client
-    def main
-      Yast.import "UI"
-      # testedfiles: Sound.ycp sound/routines.ycp
-
-      Yast.include self, "testsuite.rb"
-      @READ_I = { "target" => { "size" => -1, "tmpdir" => "/tmp" } }
-
-      TESTSUITE_INIT([@READ_I], nil)
-      Yast.include self, "sound/routines.rb"
-
-      @card = {}
-
-      TEST(lambda { get_card_label(@card) }, [], nil)
-
-      @card = {
-        "bus"           => "PCI",
-        "class_id"      => 4,
-        "device"        => "SB Live! EMU10000",
-        "device_id"     => 65538,
-        "drivers"       => [
-          {
-            "active"   => false,
-            "modprobe" => true,
-            "modules"  => [["emu10k1", ""]]
-          }
-        ],
-        "resource"      => {
-          "io"  => [
-            {
-              "active" => true,
-              "length" => 0,
-              "mode"   => "rw",
-              "start"  => 49152
-            }
-          ],
-          "irq" => [{ "count" => 1146364, "enabled" => true, "irq" => 10 }]
-        },
-        "rev"           => "7",
-        "sub_class_id"  => 1,
-        "sub_device"    => "CT4830 SBLive! Value",
-        "sub_device_id" => 98342,
-        "sub_vendor"    => "Creative Labs",
-        "sub_vendor_id" => 69890,
-        "unique_key"    => "CvwD.k1dGGUobcK9",
-        "vendor"        => "Creative Labs",
-        "vendor_id"     => 69890
-      }
-
-      TEST(lambda { get_card_label(@card) }, [], nil)
-
-      @card = {
-        "bus"           => "PCI",
-        "class_id"      => 4,
-        "device"        => "",
-        "device_id"     => 65538,
-        "drivers"       => [
-          {
-            "active"   => false,
-            "modprobe" => true,
-            "modules"  => [["emu10k1", ""]]
-          }
-        ],
-        "resource"      => {
-          "io"  => [
-            {
-              "active" => true,
-              "length" => 0,
-              "mode"   => "rw",
-              "start"  => 49152
-            }
-          ],
-          "irq" => [{ "count" => 1146364, "enabled" => true, "irq" => 10 }]
-        },
-        "rev"           => "7",
-        "sub_class_id"  => 1,
-        "sub_device"    => "CT4830 SBLive! Value",
-        "sub_device_id" => 98342,
-        "sub_vendor"    => "Creative Labs",
-        "sub_vendor_id" => 69890,
-        "unique_key"    => "CvwD.k1dGGUobcK9",
-        "vendor"        => "Creative Labs",
-        "vendor_id"     => 69890
-      }
-
-      TEST(lambda { get_card_label(@card) }, [], nil)
-
-      @card = {
-        "bus"           => "PCI",
-        "class_id"      => 4,
-        "device"        => "",
-        "device_id"     => 65538,
-        "drivers"       => [
-          {
-            "active"   => false,
-            "modprobe" => true,
-            "modules"  => [["emu10k1", ""]]
-          }
-        ],
-        "resource"      => {
-          "io"  => [
-            {
-              "active" => true,
-              "length" => 0,
-              "mode"   => "rw",
-              "start"  => 49152
-            }
-          ],
-          "irq" => [{ "count" => 1146364, "enabled" => true, "irq" => 10 }]
-        },
-        "rev"           => "7",
-        "sub_class_id"  => 1,
-        "sub_device"    => "",
-        "sub_device_id" => 98342,
-        "sub_vendor"    => "Creative Labs",
-        "sub_vendor_id" => 69890,
-        "unique_key"    => "CvwD.k1dGGUobcK9",
-        "vendor"        => "Creative Labs",
-        "vendor_id"     => 69890
-      }
-
-      TEST(lambda { get_card_label(@card) }, [], nil)
-
-      @card = {
-        "bus"           => "PCI",
-        "class_id"      => 4,
-        "device"        => "",
-        "device_id"     => 65538,
-        "drivers"       => [
-          {
-            "active"   => false,
-            "modprobe" => true,
-            "modules"  => [["emu10k1", ""]]
-          }
-        ],
-        "resource"      => {
-          "io"  => [
-            {
-              "active" => true,
-              "length" => 0,
-              "mode"   => "rw",
-              "start"  => 49152
-            }
-          ],
-          "irq" => [{ "count" => 1146364, "enabled" => true, "irq" => 10 }]
-        },
-        "rev"           => "7",
-        "sub_class_id"  => 1,
-        "sub_device"    => "CT4830 SBLive! Value",
-        "sub_device_id" => 98342,
-        "sub_vendor"    => "Creative Labs",
-        "sub_vendor_id" => 69890,
-        "unique_key"    => "CvwD.k1dGGUobcK9",
-        "vendor"        => "Creative Labs",
-        "vendor_id"     => 69890
-      }
-
-      TEST(lambda { get_card_label(@card) }, [], nil)
-
-      nil
-    end
-  end
-end
-
-Yast::GetCardLabelClient.new.main
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/testsuite/tests/import_volume.out 
new/yast2-sound-4.2.4/testsuite/tests/import_volume.out
--- old/yast2-sound-4.2.3/testsuite/tests/import_volume.out     2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/testsuite/tests/import_volume.out     1970-01-01 
01:00:00.000000000 +0100
@@ -1,4 +0,0 @@
-Return []
-Return []
-Return [[["Master", 80, false], ["CD", 90, false]]]
-Return [[["Master", 80, false], ["CD", 90, false]]]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/testsuite/tests/import_volume.rb 
new/yast2-sound-4.2.4/testsuite/tests/import_volume.rb
--- old/yast2-sound-4.2.3/testsuite/tests/import_volume.rb      2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/testsuite/tests/import_volume.rb      1970-01-01 
01:00:00.000000000 +0100
@@ -1,34 +0,0 @@
-# encoding: utf-8
-
-module Yast
-  class ImportVolumeClient < Client
-    def main
-      # testedfiles: Sound.ycp
-      Yast.include self, "testsuite.rb"
-
-      Yast.import "Sound"
-
-
-      # Important: import of the new and the old format must produce the same 
output!
-
-      @input_old_format = [[["Master", 80, false], ["CD", 90, false]]]
-
-      TEST(lambda { Sound.ImportVolumeSettings(nil) }, [], nil)
-      TEST(lambda { Sound.ImportVolumeSettings([]) }, [], nil)
-      TEST(lambda { Sound.ImportVolumeSettings(@input_old_format) }, [], nil)
-
-      @input_new_format = [
-        [
-          { "mute" => false, "name" => "Master", "volume" => 80 },
-          { "mute" => false, "name" => "CD", "volume" => 90 }
-        ]
-      ]
-
-      TEST(lambda { Sound.ImportVolumeSettings(@input_new_format) }, [], nil)
-
-      nil
-    end
-  end
-end
-
-Yast::ImportVolumeClient.new.main
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/testsuite/tests/is_snd_alias.out 
new/yast2-sound-4.2.4/testsuite/tests/is_snd_alias.out
--- old/yast2-sound-4.2.3/testsuite/tests/is_snd_alias.out      2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/testsuite/tests/is_snd_alias.out      1970-01-01 
01:00:00.000000000 +0100
@@ -1,22 +0,0 @@
-Return false
-Return true
-Return true
-Return false
-Return false
-Return false
-Return false
-Return false
-Return false
-Return false
-Return false
-Return false
-Return false
-Return false
-Return false
-Return false
-Return false
-Return true
-Return true
-Return false
-Return false
-Return false
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/testsuite/tests/is_snd_alias.rb 
new/yast2-sound-4.2.4/testsuite/tests/is_snd_alias.rb
--- old/yast2-sound-4.2.3/testsuite/tests/is_snd_alias.rb       2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/testsuite/tests/is_snd_alias.rb       1970-01-01 
01:00:00.000000000 +0100
@@ -1,44 +0,0 @@
-# encoding: utf-8
-
-module Yast
-  class IsSndAliasClient < Client
-    def main
-      Yast.import "UI"
-      # testedfiles: Sound.ycp sound/routines.ycp
-      Yast.include self, "testsuite.rb"
-
-      # initialization is needed because module Sound imports the module Arch
-      # and Arch module does a SCR call .probe.system
-      @READ = {
-        "target" => { "size" => -1, "tmpdir" => "/tmp" },
-        "probe"  => { "system" => [] }
-      }
-
-      TESTSUITE_INIT([@READ], nil)
-
-      Yast.import "Sound"
-      Yast.include self, "sound/routines.rb"
-
-      Builtins.foreach(
-        [true, false] # check for both alsa and oss behaviour
-      ) do |snd|
-        Sound.use_alsa = snd
-        TEST(lambda { is_snd_alias("") }, [], nil)
-        TEST(lambda { is_snd_alias("snd-card-0") }, [], nil)
-        TEST(lambda { is_snd_alias("snd-card-16") }, [], nil)
-        TEST(lambda { is_snd_alias("snd-card-emu10k1") }, [], nil)
-        TEST(lambda { is_snd_alias("snd-card-0a") }, [], nil)
-        TEST(lambda { is_snd_alias("snd-card-a0") }, [], nil)
-        TEST(lambda { is_snd_alias("sound-slot-1") }, [], nil)
-        TEST(lambda { is_snd_alias("sound-slot-117") }, [], nil)
-        TEST(lambda { is_snd_alias("sound-slot-0a") }, [], nil)
-        TEST(lambda { is_snd_alias("sound-slot-asdf") }, [], nil)
-        TEST(lambda { is_snd_alias("  sound-slot-0") }, [], nil)
-      end
-
-      nil
-    end
-  end
-end
-
-Yast::IsSndAliasClient.new.main
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/testsuite/tests/isa_uniq.out 
new/yast2-sound-4.2.4/testsuite/tests/isa_uniq.out
--- old/yast2-sound-4.2.3/testsuite/tests/isa_uniq.out  2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/testsuite/tests/isa_uniq.out  1970-01-01 
01:00:00.000000000 +0100
@@ -1 +0,0 @@
-Return uniq.unknown_key
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-sound-4.2.3/testsuite/tests/isa_uniq.rb 
new/yast2-sound-4.2.4/testsuite/tests/isa_uniq.rb
--- old/yast2-sound-4.2.3/testsuite/tests/isa_uniq.rb   2020-04-17 
17:01:12.000000000 +0200
+++ new/yast2-sound-4.2.4/testsuite/tests/isa_uniq.rb   1970-01-01 
01:00:00.000000000 +0100
@@ -1,21 +0,0 @@
-# encoding: utf-8
-
-module Yast
-  class IsaUniqClient < Client
-    def main
-      Yast.import "UI"
-      # testedfiles: Sound.ycp sound/routines.ycp
-      Yast.include self, "testsuite.rb"
-      @READ_I = { "target" => { "size" => -1, "tmpdir" => "/tmp" } }
-
-      TESTSUITE_INIT([@READ_I], nil)
-      Yast.include self, "sound/routines.rb"
-
-      TEST(lambda { isa_uniq }, [], nil)
-
-      nil
-    end
-  end
-end
-
-Yast::IsaUniqClient.new.main


Reply via email to