mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-18 09:08:29 +00:00
Feat run openqa tests (#100)
* support default override with ENV var on command line * output PS4 as # character instead of + * support additional options for POST via commandline ENV var
This commit is contained in:
parent
ff8ce569c7
commit
1443e22345
@ -1,10 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
ROCKY_FLAVOR=$1
|
ROCKY_FLAVOR="${ROCKY_FLAVOR:-boot-iso}"
|
||||||
ROCKY_VERSION=8.5
|
ROCKY_VERSION="${ROCKY_VERSION:-8.6}"
|
||||||
ROCKY_ARCH=x86_64
|
ROCKY_ARCH="${ROCKY_ARCH:=x86_64}"
|
||||||
ROCKY_PACKAGE_SET=minimal
|
ROCKY_PACKAGE_SET="${ROCKY_PACKAGE_SET:=minimal}"
|
||||||
|
ROCKY_EXTRA_ARGS="${ROCKY_EXTRA_ARGS:-}"
|
||||||
BUILD_PREFIX="${ROCKY_VERSION}_${ROCKY_FLAVOR}"
|
BUILD_PREFIX="${ROCKY_VERSION}_${ROCKY_FLAVOR}"
|
||||||
BUILD_NAME="${BUILD_PREFIX}_$(date +%Y%m%d.%H%M%S).0"
|
BUILD_NAME="${BUILD_PREFIX}_$(date +%Y%m%d.%H%M%S).0"
|
||||||
|
|
||||||
@ -19,6 +21,7 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export PS4='# '
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
openqa-cli api \
|
openqa-cli api \
|
||||||
-X POST isos \
|
-X POST isos \
|
||||||
@ -29,4 +32,5 @@ openqa-cli api \
|
|||||||
VERSION="$ROCKY_VERSION" \
|
VERSION="$ROCKY_VERSION" \
|
||||||
BUILD="$BUILD_NAME" \
|
BUILD="$BUILD_NAME" \
|
||||||
PACKAGE_SET="$ROCKY_PACKAGE_SET" \
|
PACKAGE_SET="$ROCKY_PACKAGE_SET" \
|
||||||
IDENTIFICATION=false
|
IDENTIFICATION=false \
|
||||||
|
"${ROCKY_EXTRA_ARGS}"
|
||||||
|
Loading…
Reference in New Issue
Block a user