From d149f2792fe39f6bd2fb6998cd10bba1a963ed2a Mon Sep 17 00:00:00 2001 From: Jan Stodola Date: Thu, 18 Apr 2024 10:29:12 +0200 Subject: [PATCH] Remove TMT dirinstall tests Gating will be done by RTT tests Resolves: RHEL-33382 --- .fmf/version | 1 - plans/integration.fmf | 12 -------- tests/dirinstall/dirinstall.fmf | 22 -------------- tests/dirinstall/dirinstall.sh | 47 ------------------------------ tests/dirinstall/ks.dirinstall.cfg | 12 -------- tests/dirinstall/repositories | 5 ---- tests/dirinstall/show_logs.sh | 21 ------------- 7 files changed, 120 deletions(-) delete mode 100644 .fmf/version delete mode 100644 plans/integration.fmf delete mode 100644 tests/dirinstall/dirinstall.fmf delete mode 100755 tests/dirinstall/dirinstall.sh delete mode 100644 tests/dirinstall/ks.dirinstall.cfg delete mode 100644 tests/dirinstall/repositories delete mode 100755 tests/dirinstall/show_logs.sh diff --git a/.fmf/version b/.fmf/version deleted file mode 100644 index d00491f..0000000 --- a/.fmf/version +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/plans/integration.fmf b/plans/integration.fmf deleted file mode 100644 index b2e3dbe..0000000 --- a/plans/integration.fmf +++ /dev/null @@ -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 diff --git a/tests/dirinstall/dirinstall.fmf b/tests/dirinstall/dirinstall.fmf deleted file mode 100644 index e49bfe1..0000000 --- a/tests/dirinstall/dirinstall.fmf +++ /dev/null @@ -1,22 +0,0 @@ -summary: Dirinstall test on regular os -contact: Radek Vykydal -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 diff --git a/tests/dirinstall/dirinstall.sh b/tests/dirinstall/dirinstall.sh deleted file mode 100755 index e34dcea..0000000 --- a/tests/dirinstall/dirinstall.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -eux - -# Remove webui because it does not support much anything yet - -# Possible alternative: rpm -E --nodeps anaconda-webui -dnf remove -y anaconda-webui - - -# Prepare test work directory - -WORK_DIR=$(mktemp -d /var/tmp/dirinstall.XXXXXX) - - -# Create kickstart - -KICKSTART_PATH=${WORK_DIR}/ks.cfg -source ./repositories -TEST_KICKSTART=./ks.dirinstall.cfg - -# Dump URLs of installation repositories found in local repositories whose names are configured in 'repositories' file -echo "url --metalink=$(dnf repoinfo $BASE_REPO | grep ^Repo-metalink | cut -d: -f2- | sed 's/^ *//')" > ${KICKSTART_PATH} -for repo in $REPOS; do - echo "repo --name=$repo --metalink=$(dnf repoinfo $repo | grep ^Repo-metalink | cut -d: -f2- | sed 's/^ *//')" >> ${KICKSTART_PATH} -done - -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 diff --git a/tests/dirinstall/ks.dirinstall.cfg b/tests/dirinstall/ks.dirinstall.cfg deleted file mode 100644 index 9b54293..0000000 --- a/tests/dirinstall/ks.dirinstall.cfg +++ /dev/null @@ -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 diff --git a/tests/dirinstall/repositories b/tests/dirinstall/repositories deleted file mode 100644 index d0dbc0d..0000000 --- a/tests/dirinstall/repositories +++ /dev/null @@ -1,5 +0,0 @@ -# Names of local repositories whose urls will be used for installation -# Repositories for "Fedora X" release: -BASE_REPO="fedora" -REPOS="" -#REPOS="fedora-modular" diff --git a/tests/dirinstall/show_logs.sh b/tests/dirinstall/show_logs.sh deleted file mode 100755 index 486ed25..0000000 --- a/tests/dirinstall/show_logs.sh +++ /dev/null @@ -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