tests: cosmetic.

This commit is contained in:
Alexandre Pujol 2025-01-12 18:23:43 +01:00
parent 61939a3bf8
commit 88f1821b19
Failed to generate hash of commit
4 changed files with 7 additions and 6 deletions

View file

@ -5,15 +5,15 @@
load common
@test "chsh: [l]ist available shells" {
@test "chsh: list available shells" {
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
}
# 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
}

View file

@ -2,7 +2,7 @@
defaults:
uefi: true
ram: '4096'
ram: '3072'
cpu: '6'
boxes:

View file

@ -88,7 +88,8 @@ func run() error {
}
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
}

View file

@ -19,7 +19,7 @@ arch)
;;
debian | ubuntu | whonix)
sudo apt-get install -y \
cpuid dfc systemd-userdbd systemd-homed tlp
cpuid dfc systemd-userdbd systemd-homed tlp network-manager
;;
opensuse*)
;;