-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0363d0
commit aad1705
Showing
2 changed files
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'; | ||
|
@@ -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) = @_; | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"; | ||
|