tmt-1.42.0.dev20+g854da669-1.20250128103910223352.pr3493.20.g854da669

List of Findings

Error: SHELLCHECK_WARNING (CWE-457): [#def1]
/usr/share/doc/tmt/examples/convert/runtest.sh:20:22: warning[SC2154]: TmpDir is referenced but not assigned.
#   18|           rlAssertRpm $PACKAGE
#   19|           rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
#   20|->         rlRun "pushd $TmpDir"
#   21|   		rlRun "set -o pipefail"
#   22|       rlPhaseEnd

Error: SHELLCHECK_WARNING (CWE-457): [#def2]
/usr/share/doc/tmt/examples/wow/full/test.sh:8:22: warning[SC2154]: tmp is referenced but not assigned.
#    6|           rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
#    7|           rlRun "run=/var/tmp/tmt/mini"
#    8|->         rlRun "pushd $tmp"
#    9|       rlPhaseEnd
#   10|   

Error: SHELLCHECK_WARNING (CWE-457): [#def3]
/usr/share/doc/tmt/examples/wow/full/test.sh:22:27: warning[SC2154]: run is referenced but not assigned.
#   20|           report="$BEAKERLIB_COMMAND_REPORT_RESULT"
#   21|           export BEAKERLIB_COMMAND_REPORT_RESULT=/bin/true
#   22|->         rlRun "tmt run -i $run -av \
#   23|               prepare -h install -c psss/tmt -p tmt+all \
#   24|               plan --name 'plans|container|virtual'"

Error: SHELLCHECK_WARNING (CWE-457): [#def4]
/usr/share/doc/tmt/examples/wow/mini/test.sh:8:22: warning[SC2154]: tmp is referenced but not assigned.
#    6|           rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
#    7|           rlRun "run=/var/tmp/tmt/mini"
#    8|->         rlRun "pushd $tmp"
#    9|       rlPhaseEnd
#   10|   

Error: SHELLCHECK_WARNING (CWE-457): [#def5]
/usr/share/doc/tmt/examples/wow/mini/test.sh:14:27: warning[SC2154]: run is referenced but not assigned.
#   12|           rlRun "dnf install -y tmt" 0 "Install the base tmt package"
#   13|           rlRun "tmt init -t base" 0 "Initialize with the base template"
#   14|->         rlRun "tmt run -i $run -av provision -h local" 0 "Run the example"
#   15|       rlPhaseEnd
#   16|   

Scan Properties

analyzer-version-clippy1.84.0
analyzer-version-cppcheck2.16.2
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-168.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-nametmt-1.42.0.dev20+g854da669-1.20250128103910223352.pr3493.20.g854da669
store-results-to/tmp/tmppbz3vz1l/tmt-1.42.0.dev20+g854da669-1.20250128103910223352.pr3493.20.g854da669.tar.xz
time-created2025-01-28 11:16:12
time-finished2025-01-28 11:17:28
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,shellcheck,clippy,unicontrol,cppcheck' '-o' '/tmp/tmppbz3vz1l/tmt-1.42.0.dev20+g854da669-1.20250128103910223352.pr3493.20.g854da669.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '/tmp/tmppbz3vz1l/tmt-1.42.0.dev20+g854da669-1.20250128103910223352.pr3493.20.g854da669.src.rpm'
tool-versioncsmock-3.8.0-1.el9