mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-15 06:35:08 +01:00
tests: cosmetic.
This commit is contained in:
parent
61939a3bf8
commit
88f1821b19
4 changed files with 7 additions and 6 deletions
|
@ -5,15 +5,15 @@
|
||||||
|
|
||||||
load common
|
load common
|
||||||
|
|
||||||
@test "chsh: [l]ist available shells" {
|
@test "chsh: list available shells" {
|
||||||
chsh --list-shells || true
|
chsh --list-shells || true
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "chsh: Set a specific login [s]hell for the current user" {
|
@test "chsh: Set a specific login shell for the current user" {
|
||||||
echo "$PASSWORD" | chsh --shell /usr/bin/bash
|
echo "$PASSWORD" | chsh --shell /usr/bin/bash
|
||||||
}
|
}
|
||||||
|
|
||||||
# bats test_tags=chsh
|
# bats test_tags=chsh
|
||||||
@test "chsh: Set a login [s]hell for a specific user" {
|
@test "chsh: Set a login shell for a specific user" {
|
||||||
sudo chsh --shell /usr/bin/sh root
|
sudo chsh --shell /usr/bin/sh root
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
uefi: true
|
uefi: true
|
||||||
ram: '4096'
|
ram: '3072'
|
||||||
cpu: '6'
|
cpu: '6'
|
||||||
|
|
||||||
boxes:
|
boxes:
|
||||||
|
|
|
@ -88,7 +88,8 @@ func run() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
logging.Bullet("Bats tests directory: %s", cfg.BatsDir)
|
logging.Bullet("Bats tests directory: %s", cfg.BatsDir)
|
||||||
logging.Bullet("Number of tests found %d", len(tests))
|
logging.Bullet("Number of profiles with tests found %d", len(tests))
|
||||||
|
logging.Bullet("Number of programs without profile found %d", len(tests))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ arch)
|
||||||
;;
|
;;
|
||||||
debian | ubuntu | whonix)
|
debian | ubuntu | whonix)
|
||||||
sudo apt-get install -y \
|
sudo apt-get install -y \
|
||||||
cpuid dfc systemd-userdbd systemd-homed tlp
|
cpuid dfc systemd-userdbd systemd-homed tlp network-manager
|
||||||
;;
|
;;
|
||||||
opensuse*)
|
opensuse*)
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue