Skip to content

Commit

Permalink
tests: minor tests improvment.
Browse files Browse the repository at this point in the history
  • Loading branch information
roddhjav committed Nov 13, 2024
1 parent b4bcb2f commit 63f1e88
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ jobs:
sudo apt-get install -y \
apparmor-profiles apparmor-utils \
bats bats-support
bash tests/requirements.sh
- name: Install apparmor.d
run: |
sudo install -Dm0644 tests/github.local /etc/apparmor.d/tunables/global.d/github.local
sudo dpkg --install .pkg/apparmor.d_*_amd64.deb || true
sudo systemctl restart apparmor.service
bash tests/requirements.sh
- name: Run the bats integration tests
run: |
Expand Down
1 change: 0 additions & 1 deletion tests/bats/snap.bats
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ load common

setup_file() {
aa_setup
skip
}

# bats test_tags=snap
Expand Down
6 changes: 0 additions & 6 deletions tests/bats/systemd-id128.bats
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ setup_file() {
aa_check
}

# bats test_tags=systemd-id128
@test "systemd-id128: Print the identifier of the current service invocation (this is available in systemd services)" {
systemd-id128 invocation-id
aa_check
}

# bats test_tags=systemd-id128
@test "systemd-id128: Generate a new random identifier and print it as a UUID (five groups of digits separated by hyphens)" {
systemd-id128 new --uuid
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
cpuid dfc systemd-userdbd systemd-homed tlp
;;
opensuse*)
;;
Expand Down

0 comments on commit 63f1e88

Please sign in to comment.