-
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.
Use serial console on apparmor_profile tests
Some parts use script_run_interactive and send_key which can't run in serial console, thus console is switched on multiple places - use script output for comamnds with control characters to avoid timeout - add quotes on base apparmor test to fix Unquoted string "apparmortest" may clash with future reserved word at sle/tests/security/apparmor_profile/usr_sbin_smbd.pm line 23, <$fh> line 21. - add sleep times to make the fast execution stable
- Loading branch information
1 parent
603cd90
commit 1e542d5
Showing
7 changed files
with
28 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
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
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
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
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
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
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
# Maintainer: QE Security <[email protected]> | ||
# Tags: poo#48776, poo#134780 | ||
|
||
use base apparmortest; | ||
use base "apparmortest"; | ||
use strict; | ||
use warnings; | ||
use testapi; | ||
|
@@ -41,7 +41,7 @@ sub samba_server_setup { | |
path = /home/testdir | ||
read only = No | ||
EOF | ||
assert_script_run("echo '$smb_config' >> /etc/samba/smb.conf"); | ||
script_output("echo '$smb_config' >> /etc/samba/smb.conf"); | ||
assert_script_run("mkdir /home/$apparmortest::testdir"); | ||
systemctl("restart smb"); | ||
} | ||
|
@@ -79,8 +79,6 @@ sub run { | |
my $pw = $apparmortest::pw; | ||
my $ip = ""; | ||
|
||
select_serial_terminal; | ||
|
||
# Set up samba server | ||
$self->samba_server_setup(); | ||
|
||
|