Skip to content

Commit

Permalink
usb: Cleanup of drive and nic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
czerw authored and frankenmichl committed Apr 16, 2024
1 parent f0363d0 commit aad1705
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions tests/kernel/usb_drive.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: FSFAP

# Package: usb_nic
# Summary: Simple smoke test for testing USB NIC connected to system
# Summary: Simple smoke test for testing USB drive connected to system
# Maintainer: LSG QE Kernel <[email protected]>

use base 'opensusebasetest';
Expand All @@ -13,7 +13,6 @@ use warnings;
use testapi;
use serial_terminal 'select_serial_terminal';
use utils;
use Utils::Logging 'export_logs_basic';

sub run {
my ($self) = @_;
Expand All @@ -37,7 +36,7 @@ sub run {

assert_script_run "mount -t btrfs $device $mountpoint";
assert_script_run "dd if=/dev/urandom of=$file bs=1M count=16";
assert_script_run "md5sum $file > $md5";
assert_script_run "md5sum $file > $md5";
assert_script_run "cp $file $file_copy";

# sync, unmount and flush slab and page cache
Expand Down
5 changes: 1 addition & 4 deletions tests/kernel/usb_nic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,20 @@

# Package: usb_nic
# Summary: Simple smoke test for testing USB NIC connected to system
# Maintainer: LSG QE Kernel <kerneli[email protected]>
# Maintainer: LSG QE Kernel <kernel[email protected]>

use base 'opensusebasetest';
use strict;
use warnings;
use testapi;
use serial_terminal 'select_serial_terminal';
use utils;
use Utils::Logging 'export_logs_basic';

sub run {
my ($self) = @_;

select_serial_terminal;

zypper_call('in -t package ethtool');

my $interface = script_output 'basename $(readlink /sys/class/net/* | grep usb )';

assert_script_run "echo \"BOOTPROTO='dhcp'\" > /etc/sysconfig/network/ifcfg-$interface";
Expand Down

0 comments on commit aad1705

Please sign in to comment.