Skip to content

Commit

Permalink
tests: cosmetic.
Browse files Browse the repository at this point in the history
  • Loading branch information
roddhjav committed Jan 12, 2025
1 parent 61939a3 commit 88f1821
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/bats/chsh.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion tests/boxes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

defaults:
uefi: true
ram: '4096'
ram: '3072'
cpu: '6'

boxes:
Expand Down
3 changes: 2 additions & 1 deletion tests/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion tests/requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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*)
;;
Expand Down

0 comments on commit 88f1821

Please sign in to comment.