tests: cleanup imports and spelling

psutil does not appear to be used, but would require installing
python3-psutil.

Resolves: rhbz#1982259
This commit is contained in:
Yaakov Selkowitz 2021-07-27 19:30:18 -04:00
parent ce98e7723b
commit e2e42d5eda
2 changed files with 4 additions and 5 deletions

View File

@ -17,7 +17,6 @@ import subprocess
import signal import signal
import shutil import shutil
import re import re
import psutil
import socket import socket
LLDPD_TCP_DUMP_FILE='/tmp/lldpd-tcp-dump.pcap' LLDPD_TCP_DUMP_FILE='/tmp/lldpd-tcp-dump.pcap'

View File

@ -2,7 +2,7 @@
# SPDX-License-Identifier: LGPL-2.1+ # SPDX-License-Identifier: LGPL-2.1+
# ~~~ # ~~~
# LLDPD integration test # LLDPD integration test
# Description: Test for ladpd:implementation of IEEE 802.1ab (LLDP) # Description: Test for lldpd:implementation of IEEE 802.1ab (LLDP)
# #
# Author: Susant Sahani <susant@redhat.com> # Author: Susant Sahani <susant@redhat.com>
# Copyright (c) 2018 Red Hat, Inc. # Copyright (c) 2018 Red Hat, Inc.
@ -12,7 +12,7 @@
. /usr/share/beakerlib/beakerlib.sh || exit 1 . /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="lldpd" PACKAGE="lldpd"
LadpdPidFile="/var/run/lldpd.pid" LldpdPidFile="/var/run/lldpd.pid"
rlJournalStart rlJournalStart
rlPhaseStartSetup rlPhaseStartSetup
@ -21,13 +21,13 @@ rlJournalStart
rlPhaseEnd rlPhaseEnd
rlPhaseStartTest rlPhaseStartTest
rlLog "lladpd tests" rlLog "lldpd tests"
rlRun "/usr/bin/python3 /usr/bin/lldpd-tests.py" rlRun "/usr/bin/python3 /usr/bin/lldpd-tests.py"
rlPhaseEnd rlPhaseEnd
rlPhaseStartCleanup rlPhaseStartCleanup
rlRun "rm /usr/bin/lldpd-tests.py" rlRun "rm /usr/bin/lldpd-tests.py"
rlLog "lladpd tests done" rlLog "lldpd tests done"
rlPhaseEnd rlPhaseEnd
rlJournalPrintText rlJournalPrintText
rlJournalEnd rlJournalEnd