Remove TMT dirinstall tests
Gating will be done by RTT tests
Cherry-picked from: d149f2792f
This commit is contained in:
parent
12b9b5af7a
commit
1e2a1142ad
@ -1 +0,0 @@
|
||||
1
|
||||
@ -1,12 +0,0 @@
|
||||
summary: Integration tests for anaconda
|
||||
|
||||
discover:
|
||||
how: fmf
|
||||
filter: 'tag: integration'
|
||||
|
||||
execute:
|
||||
how: tmt
|
||||
|
||||
finish:
|
||||
how: shell
|
||||
script: command -v journalctl && journalctl -a || true
|
||||
@ -1,22 +0,0 @@
|
||||
summary: Dirinstall test on regular os
|
||||
contact: Radek Vykydal <rvykydal@redhat.com>
|
||||
path: /tests/dirinstall
|
||||
test: ./dirinstall.sh
|
||||
duration: 1h
|
||||
tag: [integration]
|
||||
|
||||
/text:
|
||||
summary: Dirinstall test on regular os - text UI
|
||||
require:
|
||||
- anaconda
|
||||
environment:
|
||||
ANACONDA_UI_MODE: text
|
||||
|
||||
/vnc:
|
||||
summary: Dirinstall test on regular os - vnc UI
|
||||
enabled: false
|
||||
require:
|
||||
- anaconda
|
||||
- gnome-kiosk
|
||||
environment:
|
||||
ANACONDA_UI_MODE: vnc
|
||||
@ -1,64 +0,0 @@
|
||||
#!/bin/sh -eux
|
||||
|
||||
|
||||
# Prepare test work directory
|
||||
|
||||
WORK_DIR=$(mktemp -d /var/tmp/dirinstall.XXXXXX)
|
||||
|
||||
|
||||
# Create kickstart
|
||||
|
||||
KICKSTART_PATH=${WORK_DIR}/ks.cfg
|
||||
. ./repositories
|
||||
TEST_KICKSTART=./ks.dirinstall.cfg
|
||||
|
||||
echo "==== List of repositories ===="
|
||||
dnf repoinfo
|
||||
echo "== End list of repositories =="
|
||||
|
||||
if grep -q 'NAME="CentOS Stream"' /etc/os-release ; then
|
||||
BASE_REPO="$STREAM_BASE_REPO"
|
||||
APP_REPO="$STREAM_APP_REPO"
|
||||
else
|
||||
BASE_REPO="$RHEL_BASE_REPO"
|
||||
APP_REPO="$RHEL_APP_REPO"
|
||||
fi
|
||||
|
||||
get_base_url () {
|
||||
REPO="$1"
|
||||
|
||||
# This will show repository content and get url from this:
|
||||
# Repo-baseurl : http://ftp.sh.cvut.cz/centos-stream/9-stream/BaseOS/x86_64/os/ (51 more)
|
||||
dnf repoinfo "$REPO" | \
|
||||
grep ^Repo-baseurl | \
|
||||
cut -d: -f2- | \
|
||||
sed 's/^ *//' | \
|
||||
cut -d' ' -f1
|
||||
}
|
||||
|
||||
# Dump URLs of installation repositories found in local repositories whose names are configured in 'repositories' file
|
||||
echo "url --url=$(get_base_url $BASE_REPO)" > ${KICKSTART_PATH}
|
||||
echo "repo --name=$APP_REPO --baseurl=$(get_base_url $APP_REPO)" >> ${KICKSTART_PATH}
|
||||
|
||||
cat ${TEST_KICKSTART} >> ${KICKSTART_PATH}
|
||||
|
||||
# Log the kickstart
|
||||
cat ${KICKSTART_PATH}
|
||||
|
||||
|
||||
# Run dirinstall
|
||||
|
||||
INSTALL_DIR=${WORK_DIR}/install_dir
|
||||
mkdir ${INSTALL_DIR}
|
||||
|
||||
anaconda --dirinstall ${INSTALL_DIR} --kickstart ${KICKSTART_PATH} --${ANACONDA_UI_MODE} --noninteractive 2>&1
|
||||
|
||||
|
||||
# Remove test work directory
|
||||
|
||||
rm -rf ${WORK_DIR}
|
||||
|
||||
|
||||
# Show and remove the logs for this anaconda run
|
||||
|
||||
./show_logs.sh
|
||||
@ -1,12 +0,0 @@
|
||||
# The repository configuration (url, repo) needs to be added here.
|
||||
# It varies by the product and version we are running on / testing
|
||||
|
||||
lang en_US.UTF-8
|
||||
keyboard --vckeymap=us --xlayouts='us'
|
||||
rootpw --plaintext redhat
|
||||
timezone --utc Europe/Prague
|
||||
|
||||
shutdown
|
||||
|
||||
%packages
|
||||
%end
|
||||
@ -1,8 +0,0 @@
|
||||
# Names of local repositories whose urls will be used for installation
|
||||
# Repositories for rhel in gating testing environment (vm image):
|
||||
RHEL_BASE_REPO="rhel-BaseOS"
|
||||
RHEL_APP_REPO="rhel-AppStream"
|
||||
|
||||
# Repositories for CentOS Stream in gating testing environment:
|
||||
STREAM_BASE_REPO="baseos"
|
||||
STREAM_APP_REPO="appstream"
|
||||
@ -1,21 +0,0 @@
|
||||
#!/bin/sh -x
|
||||
|
||||
ls /tmp
|
||||
|
||||
LOG_DIR=/tmp
|
||||
|
||||
cd ${LOG_DIR}
|
||||
KS_SCRIPT_LOGS=$(ls ks-script-*.log)
|
||||
cd -
|
||||
|
||||
ANACONDA_LOGS="anaconda.log storage.log packaging.log program.log dbus.log dnf.librepo.log ${KS_SCRIPT_LOGS}"
|
||||
|
||||
for log in ${ANACONDA_LOGS} ; do
|
||||
LOG_PATH=${LOG_DIR}/${log}
|
||||
if [ -f ${LOG_PATH} ]; then
|
||||
echo "----------------------- Dumping log file $LOG_PATH:"
|
||||
cat $LOG_PATH
|
||||
# clear for the following test
|
||||
rm $LOG_PATH
|
||||
fi
|
||||
done
|
||||
Loading…
Reference in New Issue
Block a user