Skip to content

Commit

Permalink
Move skip inside @setup functions
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Oct 4, 2024
1 parent bcad30b commit 373d462
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 6 additions & 4 deletions tests/oob/ipmitool
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ if [ -s ./common/TEST_ENV ];then
source ./common/TEST_ENV
fi

if [ ! -z "$SIMPLE_CI" ]; then
skip "Not supported in simple CI setup"
fi

if [ -n "$IPMI_PASSWORD" ];then
export IPMI_PASSWORD
fi

setup() {
if [ -n "$SIMPLE_CI" ]; then
skip "Not supported in simple CI setup"
fi
}

@test "[OOB] ipmitool exists" {
run which ipmitool
assert_success
Expand Down
7 changes: 4 additions & 3 deletions tests/oob/warewulf-ipmi
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ if [ -n "$IPMI_PASSWORD" ];then
export IPMI_PASSWORD
fi

@test "[warewulf-ipmi] ipmitool lanplus protocol" {

setup() {
if [ -n "$SIMPLE_CI" ]; then
skip "Not supported in simple CI setup"
fi

}

@test "[warewulf-ipmi] ipmitool lanplus protocol" {
rpm -q --quiet warewulf-ipmi-ohpc || skip "Warewulf not installed, skipping warewulf-ipmitool check"

run wwsh ipmi powerstatus c1
Expand Down

0 comments on commit 373d462

Please sign in to comment.