Skip to content

Commit

Permalink
New script to run install tests in nested hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
ydirson committed Sep 11, 2024
1 parent c3b7785 commit cfae05d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,12 @@ for version in 83rc1 83b2 83b1 821.1 81 80 76 75 ch821.1 xs8; do
REFCONFS+=($fw-$version-iso-ext)
done
done

# configurations to be tested on nightly

TESTCONFS=()
for fw in uefi bios; do
for sr in ext lvm; do
TESTCONFS+=($fw-83nightly-iso-%sr)
done
done
30 changes: 30 additions & 0 deletions scripts/runtests-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
set -e

# installation of nightly + self-upgrade + restore

# needs at least --hosts=$NEST

. $(dirname $0)/lib.sh

TESTCLASS="tests/install/test.py::TestNested"

for conf in "${TESTCONFS[@]}"; do
IFS=- read fw version media sr < <(echo "$conf")
run_pytest \
--log-file=test-$conf.log --ignore-unknown-dependency \
--reruns=5 --only-rerun=TimeoutError \
"$@" \
$TESTCLASS::test_install[$fw-$version-$media-$sr] \
$TESTCLASS::test_tune_firstboot[None-$fw-$version-host1-$media-$sr] \
$TESTCLASS::test_tune_firstboot[None-$fw-$version-host2-$media-$sr] \
$TESTCLASS::test_boot_inst[$fw-$version-host1-$media-$sr] \
$TESTCLASS::test_boot_inst[$fw-$version-host2-$media-$sr] \
$TESTCLASS::test_upgrade[$fw-$version-83nightly-host1-$media-$sr] \
$TESTCLASS::test_upgrade[$fw-$version-83nightly-host2-$media-$sr] \
$TESTCLASS::test_boot_upg[$fw-$version-83nightly-host1-$media-$sr] \
$TESTCLASS::test_boot_upg[$fw-$version-83nightly-host2-$media-$sr] \
;
done

report_failures

0 comments on commit cfae05d

Please sign in to comment.