Skip to content

Commit

Permalink
WIP New scripts to run post-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 568808c commit d45aed2
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/runtests-postinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
set -e

# needs at least --nest=$NEST

. $(dirname $0)/lib.sh

# FIXME may depend on images
REFSHA="ff2a3238eae5abdb0effb092fadbcec2487119e4"

. $(dirname $0)/lib.sh

for conf in "${TESTCONFS[@]}"; do
IFS=- read fw version media sr < <(echo "$conf")
host1="install.test::Nested::boot_inst[$fw-$version-83nightly-host1-$media-$sr]-vm1-$REFSHA"
host2="install.test::Nested::boot_inst[$fw-$version-83nightly-host2-$media-$sr]-vm1-$REFSHA"

run_pytest \
--runner "./jobs.py run postinstall 'cache://${host1},cache://${host2}'" \
--log-file=test-postinstall-$conf.log \
"$@" \
;
done

report_failures
25 changes: 25 additions & 0 deletions scripts/runtests-postupgrade.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
set -e

# needs at least --nest=$NEST

. $(dirname $0)/lib.sh

# FIXME may depend on images
REFSHA="ff2a3238eae5abdb0effb092fadbcec2487119e4"

. $(dirname $0)/lib.sh

for conf in "${REFCONFS[@]}"; do
IFS=- read fw version media sr < <(echo "$conf")
host1="install.test::Nested::boot_upg[$fw-$version-83nightly-host1-$media-$sr]-vm1-$REFSHA"
host2="install.test::Nested::boot_upg[$fw-$version-83nightly-host2-$media-$sr]-vm1-$REFSHA"

run_pytest \
--runner "./jobs.py run postinstall 'cache://${host1},cache://${host2}'" \
--log-file=test-postinstall-$conf.log \
"$@" \
;
done

report_failures

0 comments on commit d45aed2

Please sign in to comment.