Diff of the two buildlogs: -- --- b1/build.log 2021-08-10 07:55:03.952153041 +0000 +++ b2/build.log 2021-08-10 07:58:29.476465589 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Aug 9 19:53:14 -12 2021 -I: pbuilder-time-stamp: 1628581994 +I: Current time: Tue Sep 13 04:18:07 +14 2022 +I: pbuilder-time-stamp: 1662992287 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bullseye-reproducible-base.tgz] I: copying local configuration @@ -16,8 +16,8 @@ I: copying [./bandit_1.6.2-1.debian.tar.xz] I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' -gpgv: keyblock resource '/tmp/dpkg-verify-sig.LZyWh01r/trustedkeys.kbx': General error -gpgv: Signature made Tue Feb 25 00:03:43 2020 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.0sScS40E/trustedkeys.kbx': General error +gpgv: Signature made Wed Feb 26 02:03:43 2020 +14 gpgv: using RSA key A0B1A9F3508956130E7A425CD416AD15AC6B43FE gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./bandit_1.6.2-1.dsc @@ -26,135 +26,169 @@ dpkg-source: info: unpacking bandit_1.6.2-1.debian.tar.xz I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/19368/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/16176/tmp/hooks/D01_modify_environment starting +debug: Running on codethink15-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/16176/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/16176/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="1" [2]="4" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.1.4(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=8' - DISTRIBUTION='' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='19368' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=16176 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.3NBZxBivgT/pbuilderrc_uXFL --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.3NBZxBivgT/b1 --logfile b1/build.log bandit_1.6.2-1.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.3NBZxBivgT/pbuilderrc_yXTD --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.3NBZxBivgT/b2 --logfile b2/build.log --extrapackages usrmerge bandit_1.6.2-1.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink12-arm64 4.15.0-153-generic #160-Ubuntu SMP Thu Jul 29 07:06:07 UTC 2021 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-153-generic #160-Ubuntu SMP Thu Jul 29 07:06:07 UTC 2021 aarch64 GNU/Linux I: ls -l /bin total 5252 - -rwxr-xr-x 1 root root 1282512 Aug 4 08:25 bash - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bzcat - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Jul 20 2020 bzdiff - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Sep 4 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Jul 20 2020 bzgrep - -rwxr-xr-x 3 root root 34808 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 14264 Jul 20 2020 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 20 2020 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 20 2020 bzmore - -rwxr-xr-x 1 root root 39832 Sep 22 2020 cat - -rwxr-xr-x 1 root root 64512 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 60368 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 64528 Sep 22 2020 chown - -rwxr-xr-x 1 root root 138896 Sep 22 2020 cp - -rwxr-xr-x 1 root root 129544 Dec 10 2020 dash - -rwxr-xr-x 1 root root 101384 Sep 22 2020 date - -rwxr-xr-x 1 root root 80984 Sep 22 2020 dd - -rwxr-xr-x 1 root root 89824 Sep 22 2020 df - -rwxr-xr-x 1 root root 143088 Sep 22 2020 dir - -rwxr-xr-x 1 root root 76152 Jul 28 07:09 dmesg - lrwxrwxrwx 1 root root 8 Nov 6 2019 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Nov 6 2019 domainname -> hostname - -rwxr-xr-x 1 root root 35632 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 31512 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 64856 Jul 28 07:09 findmnt - -rwsr-xr-x 1 root root 34824 Feb 26 04:12 fusermount - -rwxr-xr-x 1 root root 178400 Nov 9 2020 grep - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 gunzip - -rwxr-xr-x 1 root root 6376 Mar 2 11:30 gzexe - -rwxr-xr-x 1 root root 93744 Mar 2 11:30 gzip - -rwxr-xr-x 1 root root 18440 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 68720 Sep 22 2020 ln - -rwxr-xr-x 1 root root 52720 Feb 7 2020 login - -rwxr-xr-x 1 root root 143088 Sep 22 2020 ls - -rwxr-xr-x 1 root root 161960 Jul 28 07:09 lsblk - -rwxr-xr-x 1 root root 85200 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 68744 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 43976 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 51368 Jul 28 07:09 more - -rwsr-xr-x 1 root root 51360 Jul 28 07:09 mount - -rwxr-xr-x 1 root root 14496 Jul 28 07:09 mountpoint - -rwxr-xr-x 1 root root 134808 Sep 22 2020 mv - lrwxrwxrwx 1 root root 8 Nov 6 2019 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 18 03:38 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 35720 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Aug 4 08:25 rbash -> bash - -rwxr-xr-x 1 root root 43872 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 68592 Sep 22 2020 rm - -rwxr-xr-x 1 root root 43880 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 19208 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 114016 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Aug 8 23:21 sh -> dash - -rwxr-xr-x 1 root root 35656 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 72640 Sep 22 2020 stty - -rwsr-xr-x 1 root root 67776 Jul 28 07:09 su - -rwxr-xr-x 1 root root 35672 Sep 22 2020 sync - -rwxr-xr-x 1 root root 535768 Feb 16 21:55 tar - -rwxr-xr-x 1 root root 10568 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 89120 Sep 22 2020 touch - -rwxr-xr-x 1 root root 31512 Sep 22 2020 true - -rwxr-xr-x 1 root root 14264 Feb 26 04:12 ulockmgr_server - -rwsr-xr-x 1 root root 30880 Jul 28 07:09 umount - -rwxr-xr-x 1 root root 35640 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 uncompress - -rwxr-xr-x 1 root root 143088 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 59584 Jul 28 07:09 wdctl - lrwxrwxrwx 1 root root 8 Nov 6 2019 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Mar 2 11:30 zcat - -rwxr-xr-x 1 root root 1678 Mar 2 11:30 zcmp - -rwxr-xr-x 1 root root 5880 Mar 2 11:30 zdiff - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zegrep - -rwxr-xr-x 1 root root 29 Mar 2 11:30 zfgrep - -rwxr-xr-x 1 root root 2081 Mar 2 11:30 zforce - -rwxr-xr-x 1 root root 7585 Mar 2 11:30 zgrep - -rwxr-xr-x 1 root root 2206 Mar 2 11:30 zless - -rwxr-xr-x 1 root root 1842 Mar 2 11:30 zmore - -rwxr-xr-x 1 root root 4553 Mar 2 11:30 znew -I: user script /srv/workspace/pbuilder/19368/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1282512 Aug 5 2021 bash + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bzcat + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Jul 21 2020 bzdiff + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Sep 5 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Jul 21 2020 bzgrep + -rwxr-xr-x 3 root root 34808 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 14264 Jul 21 2020 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 21 2020 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 21 2020 bzmore + -rwxr-xr-x 1 root root 39832 Sep 23 2020 cat + -rwxr-xr-x 1 root root 64512 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 60368 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 64528 Sep 23 2020 chown + -rwxr-xr-x 1 root root 138896 Sep 23 2020 cp + -rwxr-xr-x 1 root root 129544 Dec 11 2020 dash + -rwxr-xr-x 1 root root 101384 Sep 23 2020 date + -rwxr-xr-x 1 root root 80984 Sep 23 2020 dd + -rwxr-xr-x 1 root root 89824 Sep 23 2020 df + -rwxr-xr-x 1 root root 143088 Sep 23 2020 dir + -rwxr-xr-x 1 root root 76152 Jul 29 2021 dmesg + lrwxrwxrwx 1 root root 8 Nov 8 2019 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Nov 8 2019 domainname -> hostname + -rwxr-xr-x 1 root root 35632 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 31512 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 64856 Jul 29 2021 findmnt + -rwsr-xr-x 1 root root 34824 Feb 27 2021 fusermount + -rwxr-xr-x 1 root root 178400 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 2021 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 2021 gzexe + -rwxr-xr-x 1 root root 93744 Mar 3 2021 gzip + -rwxr-xr-x 1 root root 18440 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 68720 Sep 23 2020 ln + -rwxr-xr-x 1 root root 52720 Feb 8 2020 login + -rwxr-xr-x 1 root root 143088 Sep 23 2020 ls + -rwxr-xr-x 1 root root 161960 Jul 29 2021 lsblk + -rwxr-xr-x 1 root root 85200 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 68744 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 43976 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 51368 Jul 29 2021 more + -rwsr-xr-x 1 root root 51360 Jul 29 2021 mount + -rwxr-xr-x 1 root root 14496 Jul 29 2021 mountpoint + -rwxr-xr-x 1 root root 134808 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 2021 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 35720 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Aug 5 2021 rbash -> bash + -rwxr-xr-x 1 root root 43872 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 68592 Sep 23 2020 rm + -rwxr-xr-x 1 root root 43880 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 19208 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 114016 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Sep 13 04:18 sh -> bash + lrwxrwxrwx 1 root root 4 Sep 11 05:46 sh.distrib -> dash + -rwxr-xr-x 1 root root 35656 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 72640 Sep 23 2020 stty + -rwsr-xr-x 1 root root 67776 Jul 29 2021 su + -rwxr-xr-x 1 root root 35672 Sep 23 2020 sync + -rwxr-xr-x 1 root root 535768 Feb 17 2021 tar + -rwxr-xr-x 1 root root 10568 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 89120 Sep 23 2020 touch + -rwxr-xr-x 1 root root 31512 Sep 23 2020 true + -rwxr-xr-x 1 root root 14264 Feb 27 2021 ulockmgr_server + -rwsr-xr-x 1 root root 30880 Jul 29 2021 umount + -rwxr-xr-x 1 root root 35640 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 2021 uncompress + -rwxr-xr-x 1 root root 143088 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 59584 Jul 29 2021 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 2021 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 2021 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 2021 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 2021 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 2021 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 2021 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 2021 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 2021 zless + -rwxr-xr-x 1 root root 1842 Mar 3 2021 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 2021 znew +I: user script /srv/workspace/pbuilder/16176/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -399,7 +433,7 @@ Get: 171 http://deb.debian.org/debian bullseye/main arm64 python3-stestr all 3.0.1-2 [56.3 kB] Get: 172 http://deb.debian.org/debian bullseye/main arm64 python3-oslotest all 1:4.4.1-2 [18.7 kB] Get: 173 http://deb.debian.org/debian bullseye/main arm64 python3-testscenarios all 0.5.0-3 [13.6 kB] -Fetched 45.5 MB in 1s (36.4 MB/s) +Fetched 45.5 MB in 1s (40.5 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package bsdextrautils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19646 files and directories currently installed.) @@ -1146,9 +1180,42 @@ Building dependency tree... Reading state information... fakeroot is already the newest version (1.25.3-1.1). -0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. +The following additional packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl +The following NEW packages will be installed: + libfile-find-rule-perl libnumber-compare-perl libtext-glob-perl usrmerge +0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. +Need to get 59.5 kB of archives. +After this operation, 157 kB of additional disk space will be used. +Get:1 http://deb.debian.org/debian bullseye/main arm64 libnumber-compare-perl all 0.03-1.1 [6956 B] +Get:2 http://deb.debian.org/debian bullseye/main arm64 libtext-glob-perl all 0.11-1 [8888 B] +Get:3 http://deb.debian.org/debian bullseye/main arm64 libfile-find-rule-perl all 0.34-1 [30.6 kB] +Get:4 http://deb.debian.org/debian bullseye/main arm64 usrmerge all 25 [13.0 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 59.5 kB in 0s (2037 kB/s) +Selecting previously unselected package libnumber-compare-perl. +(Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 29120 files and directories currently installed.) +Preparing to unpack .../libnumber-compare-perl_0.03-1.1_all.deb ... +Unpacking libnumber-compare-perl (0.03-1.1) ... +Selecting previously unselected package libtext-glob-perl. +Preparing to unpack .../libtext-glob-perl_0.11-1_all.deb ... +Unpacking libtext-glob-perl (0.11-1) ... +Selecting previously unselected package libfile-find-rule-perl. +Preparing to unpack .../libfile-find-rule-perl_0.34-1_all.deb ... +Unpacking libfile-find-rule-perl (0.34-1) ... +Selecting previously unselected package usrmerge. +Preparing to unpack .../archives/usrmerge_25_all.deb ... +Unpacking usrmerge (25) ... +Setting up libtext-glob-perl (0.11-1) ... +Setting up libnumber-compare-perl (0.03-1.1) ... +Setting up libfile-find-rule-perl (0.34-1) ... +Setting up usrmerge (25) ... +The system has been successfully converted. +Processing triggers for man-db (2.9.4-2) ... +Not building database; man-db/auto-update is not 'true'. I: Building the package -I: Running cd /build/bandit-1.6.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../bandit_1.6.2-1_source.changes +hostname: Temporary failure in name resolution +I: Running cd /build/bandit-1.6.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../bandit_1.6.2-1_source.changes dpkg-buildpackage: info: source package bandit dpkg-buildpackage: info: source version 1.6.2-1 dpkg-buildpackage: info: source distribution unstable @@ -1214,6 +1281,11 @@ creating build creating build/lib creating build/lib/bandit +creating build/lib/bandit/blacklists +copying bandit/blacklists/utils.py -> build/lib/bandit/blacklists +copying bandit/blacklists/imports.py -> build/lib/bandit/blacklists +copying bandit/blacklists/calls.py -> build/lib/bandit/blacklists +copying bandit/blacklists/__init__.py -> build/lib/bandit/blacklists creating build/lib/bandit/formatters copying bandit/formatters/yaml.py -> build/lib/bandit/formatters copying bandit/formatters/xml.py -> build/lib/bandit/formatters @@ -1230,11 +1302,23 @@ copying bandit/cli/config_generator.py -> build/lib/bandit/cli copying bandit/cli/baseline.py -> build/lib/bandit/cli copying bandit/cli/__init__.py -> build/lib/bandit/cli -creating build/lib/bandit/blacklists -copying bandit/blacklists/utils.py -> build/lib/bandit/blacklists -copying bandit/blacklists/imports.py -> build/lib/bandit/blacklists -copying bandit/blacklists/calls.py -> build/lib/bandit/blacklists -copying bandit/blacklists/__init__.py -> build/lib/bandit/blacklists +creating build/lib/bandit/core +copying bandit/core/utils.py -> build/lib/bandit/core +copying bandit/core/tester.py -> build/lib/bandit/core +copying bandit/core/test_set.py -> build/lib/bandit/core +copying bandit/core/test_properties.py -> build/lib/bandit/core +copying bandit/core/node_visitor.py -> build/lib/bandit/core +copying bandit/core/metrics.py -> build/lib/bandit/core +copying bandit/core/meta_ast.py -> build/lib/bandit/core +copying bandit/core/manager.py -> build/lib/bandit/core +copying bandit/core/issue.py -> build/lib/bandit/core +copying bandit/core/extension_loader.py -> build/lib/bandit/core +copying bandit/core/docs_utils.py -> build/lib/bandit/core +copying bandit/core/context.py -> build/lib/bandit/core +copying bandit/core/constants.py -> build/lib/bandit/core +copying bandit/core/config.py -> build/lib/bandit/core +copying bandit/core/blacklisting.py -> build/lib/bandit/core +copying bandit/core/__init__.py -> build/lib/bandit/core creating build/lib/bandit/plugins copying bandit/plugins/yaml_load.py -> build/lib/bandit/plugins copying bandit/plugins/weak_cryptographic_key.py -> build/lib/bandit/plugins @@ -1262,23 +1346,6 @@ copying bandit/plugins/__init__.py -> build/lib/bandit/plugins copying bandit/__main__.py -> build/lib/bandit copying bandit/__init__.py -> build/lib/bandit -creating build/lib/bandit/core -copying bandit/core/utils.py -> build/lib/bandit/core -copying bandit/core/tester.py -> build/lib/bandit/core -copying bandit/core/test_set.py -> build/lib/bandit/core -copying bandit/core/test_properties.py -> build/lib/bandit/core -copying bandit/core/node_visitor.py -> build/lib/bandit/core -copying bandit/core/metrics.py -> build/lib/bandit/core -copying bandit/core/meta_ast.py -> build/lib/bandit/core -copying bandit/core/manager.py -> build/lib/bandit/core -copying bandit/core/issue.py -> build/lib/bandit/core -copying bandit/core/extension_loader.py -> build/lib/bandit/core -copying bandit/core/docs_utils.py -> build/lib/bandit/core -copying bandit/core/context.py -> build/lib/bandit/core -copying bandit/core/constants.py -> build/lib/bandit/core -copying bandit/core/config.py -> build/lib/bandit/core -copying bandit/core/blacklisting.py -> build/lib/bandit/core -copying bandit/core/__init__.py -> build/lib/bandit/core running egg_info creating bandit.egg-info writing bandit.egg-info/PKG-INFO @@ -1301,23 +1368,6 @@ creating /build/bandit-1.6.2/debian/tmp/usr/lib/python3 creating /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages creating /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit -creating /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/__init__.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/blacklisting.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/config.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/constants.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/context.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/docs_utils.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/extension_loader.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/issue.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/manager.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/meta_ast.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/metrics.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/node_visitor.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/test_properties.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/test_set.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/tester.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core -copying build/lib/bandit/core/utils.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core copying build/lib/bandit/__init__.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit copying build/lib/bandit/__main__.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit creating /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins @@ -1345,11 +1395,23 @@ copying build/lib/bandit/plugins/try_except_pass.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins copying build/lib/bandit/plugins/weak_cryptographic_key.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins copying build/lib/bandit/plugins/yaml_load.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins -creating /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists -copying build/lib/bandit/blacklists/__init__.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists -copying build/lib/bandit/blacklists/calls.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists -copying build/lib/bandit/blacklists/imports.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists -copying build/lib/bandit/blacklists/utils.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists +creating /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/__init__.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/blacklisting.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/config.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/constants.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/context.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/docs_utils.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/extension_loader.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/issue.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/manager.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/meta_ast.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/metrics.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/node_visitor.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/test_properties.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/test_set.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/tester.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core +copying build/lib/bandit/core/utils.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core creating /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/cli copying build/lib/bandit/cli/__init__.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/cli copying build/lib/bandit/cli/baseline.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/cli @@ -1366,22 +1428,11 @@ copying build/lib/bandit/formatters/utils.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters copying build/lib/bandit/formatters/xml.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters copying build/lib/bandit/formatters/yaml.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/__init__.py to __init__.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/blacklisting.py to blacklisting.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/config.py to config.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/constants.py to constants.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/context.py to context.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/docs_utils.py to docs_utils.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/extension_loader.py to extension_loader.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/issue.py to issue.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/manager.py to manager.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/meta_ast.py to meta_ast.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/metrics.py to metrics.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/node_visitor.py to node_visitor.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/test_properties.py to test_properties.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/test_set.py to test_set.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/tester.py to tester.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/utils.py to utils.cpython-39.pyc +creating /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists +copying build/lib/bandit/blacklists/__init__.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists +copying build/lib/bandit/blacklists/calls.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists +copying build/lib/bandit/blacklists/imports.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists +copying build/lib/bandit/blacklists/utils.py -> /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/__init__.py to __init__.cpython-39.pyc byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/__main__.py to __main__.cpython-39.pyc byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins/__init__.py to __init__.cpython-39.pyc @@ -1408,10 +1459,22 @@ byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins/try_except_pass.py to try_except_pass.cpython-39.pyc byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins/weak_cryptographic_key.py to weak_cryptographic_key.cpython-39.pyc byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/plugins/yaml_load.py to yaml_load.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/__init__.py to __init__.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/calls.py to calls.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/imports.py to imports.cpython-39.pyc -byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/utils.py to utils.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/__init__.py to __init__.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/blacklisting.py to blacklisting.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/config.py to config.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/constants.py to constants.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/context.py to context.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/docs_utils.py to docs_utils.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/extension_loader.py to extension_loader.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/issue.py to issue.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/manager.py to manager.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/meta_ast.py to meta_ast.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/metrics.py to metrics.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/node_visitor.py to node_visitor.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/test_properties.py to test_properties.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/test_set.py to test_set.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/tester.py to tester.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/core/utils.py to utils.cpython-39.pyc byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/cli/__init__.py to __init__.cpython-39.pyc byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/cli/baseline.py to baseline.cpython-39.pyc byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/cli/config_generator.py to config_generator.cpython-39.pyc @@ -1426,6 +1489,10 @@ byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/utils.py to utils.cpython-39.pyc byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/xml.py to xml.cpython-39.pyc byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/formatters/yaml.py to yaml.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/__init__.py to __init__.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/calls.py to calls.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/imports.py to imports.cpython-39.pyc +byte-compiling /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit/blacklists/utils.py to utils.cpython-39.pyc running install_egg_info Copying bandit.egg-info to /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages/bandit-1.6.2.egg-info Skipping SOURCES.txt @@ -1444,89 +1511,95 @@ + PYTHON3S=disabled + TEST_PARALLEL_OPT=--parallel + TEST_SERIAL_OPT= ++ for i in $@ ++ case "${1}" in + PKGOS_USE_PY2=no + shift -+ [ no = yes ] -+ [ yes = yes ] -+ py3versions -vr ++ for i in $@ ++ case "${1}" in ++ '[' no = yes ']' ++ '[' yes = yes ']' +++ py3versions -vr + PYTHON3S=3.9 -+ [ yes = no ] -+ [ no = yes ] -+ [ disabled = disabled ] ++ '[' yes = no ']' ++ '[' no = yes ']' ++ for pyvers in ${PYTHONS} ${PYTHON3S} ++ '[' disabled = disabled ']' + continue -+ [ 3.9 = disabled ] -+ echo 3.9 -+ cut -d. -f1 ++ for pyvers in ${PYTHONS} ${PYTHON3S} ++ '[' 3.9 = disabled ']' +++ echo 3.9 +++ cut -d. -f1 + PYMAJOR=3 -+ echo ===> Testing with python (python3) ++ echo '===> Testing with python (python3)' ===> Testing with python (python3) -+ [ 3 = 3 ] -+ pwd -+ [ -d /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages ] -+ [ -z /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages ] -+ [ -e .stestr.conf ] -+ [ -x /usr/bin/python3-stestr ] ++ '[' 3 = 3 ']' +++ pwd ++ '[' -d /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages ']' ++ '[' -z /build/bandit-1.6.2/debian/tmp/usr/lib/python3/dist-packages ']' ++ '[' -e .stestr.conf ']' ++ '[' -x /usr/bin/python3-stestr ']' + STESTR=stestr + rm -rf .stestr -+ PYTHON=python3.9 stestr run --parallel --subunit tests\.(?!(.*unit\.cli\.test_baseline\.BanditBaselineToolTests\.test_bandit_baseline.*|.*functional\.test_runtime.*|.*functional\.test_baseline.*|.*functional\.test_functional\.FunctionalTests.*))+ -subunit2pyunit -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_init_logger -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_init_logger ... ok -tests.unit.core.test_config.TestGetSetting.test_not_exist -tests.unit.core.test_config.TestGetSetting.test_not_exist ... ok -tests.unit.core.test_config.TestInit.test_file_does_not_exist -tests.unit.core.test_config.TestInit.test_file_does_not_exist ... ok -tests.unit.core.test_config.TestInit.test_settings -tests.unit.core.test_config.TestInit.test_settings ... ok -while parsing a flow sequence - in "/tmp/tmpgit6tvd6", line 1, column 3 -expected ',' or ']', but got '' - in "/tmp/tmpgit6tvd6", line 1, column 14 -tests.unit.core.test_config.TestInit.test_yaml_invalid -tests.unit.core.test_config.TestInit.test_yaml_invalid ... ok -tests.unit.formatters.test_xml.XmlFormatterTests.test_report -tests.unit.formatters.test_xml.XmlFormatterTests.test_report ... ok -Config file '/tmp/tmp7oaac4im' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -tests.unit.core.test_config.TestConfigCompat.test_bad_yaml -tests.unit.core.test_config.TestConfigCompat.test_bad_yaml ... ok -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_get_config_settings -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_get_config_settings ... ok -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_main_show_defaults -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_main_show_defaults ... ok -Config file '/tmp/tmpw3fhvyh_' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -Config file '' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Config file '' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -tests.unit.core.test_config.TestConfigCompat.test_blacklist_error -tests.unit.core.test_config.TestConfigCompat.test_blacklist_error ... ok -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_no_defaults -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_no_defaults ... ok -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_out_file -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_out_file ... ok -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_show_defaults -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_show_defaults ... ok ++ subunit2pyunit ++ PYTHON=python3.9 ++ stestr run --parallel --subunit 'tests\.(?!(.*unit\.cli\.test_baseline\.BanditBaselineToolTests\.test_bandit_baseline.*|.*functional\.test_runtime.*|.*functional\.test_baseline.*|.*functional\.test_functional\.FunctionalTests.*))' +tests.unit.cli.test_config_generator.BanditConfigGeneratorLoggerTests.test_init_logger +tests.unit.cli.test_config_generator.BanditConfigGeneratorLoggerTests.test_init_logger ... ok tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue ... ok tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue_defaults tests.unit.core.test_blacklisting.BlacklistingTests.test_report_issue_defaults ... ok -Config file '/tmp/tmp_l6ekcdt' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_data -tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_data ... ok -Unable to parse config file /tmp/tmpmqhluun7 or missing [bandit] section -Config file '/tmp/tmp25qsdisw' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins +[main] DEBUG logging initialized +Unable to parse config file /tmp/tmpi8m3cph2 or missing [bandit] section Multiple .bandit files found - scan separately or choose one with --ini - /tmp/tmpjxnwohc1/.bandit, /tmp/tmpjxnwohc1/second_config_directory/.bandit + /tmp/tmp0y02igdy/.bandit, /tmp/tmp0y02igdy/second_config_directory/.bandit +Config file '/tmp/tmpge6h3rp3' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger +tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger ... ok +tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger_debug_mode +tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger_debug_mode ... ok +tests.unit.core.test_manager.ManagerTests.test_compare_baseline +tests.unit.core.test_manager.ManagerTests.test_compare_baseline ... ok +tests.unit.core.test_manager.ManagerTests.test_create_manager +tests.unit.core.test_manager.ManagerTests.test_create_manager ... ok +tests.unit.core.test_manager.ManagerTests.test_create_manager_with_profile +tests.unit.core.test_manager.ManagerTests.test_create_manager_with_profile ... ok +tests.unit.core.test_config.TestGetOption.test_levels +tests.unit.core.test_config.TestGetOption.test_levels ... ok +tests.unit.formatters.test_text.TextFormatterTests.test_no_issues +tests.unit.formatters.test_text.TextFormatterTests.test_no_issues ... ok +tests.unit.formatters.test_text.TextFormatterTests.test_output_issue +tests.unit.formatters.test_text.TextFormatterTests.test_output_issue ... ok +while parsing a flow sequence + in "/tmp/tmpdvmz2_n_", line 1, column 3 +expected ',' or ']', but got '' + in "/tmp/tmpdvmz2_n_", line 1, column 14 +tests.unit.core.test_config.TestGetOption.test_levels_not_exist +tests.unit.core.test_config.TestGetOption.test_levels_not_exist ... ok +tests.unit.core.test_config.TestInit.test_file_does_not_exist +tests.unit.core.test_config.TestInit.test_file_does_not_exist ... ok +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_init_logger +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_init_logger ... ok +tests.unit.formatters.test_text.TextFormatterTests.test_report_baseline +tests.unit.formatters.test_text.TextFormatterTests.test_report_baseline ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_empty_directory_no_target tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_empty_directory_no_target ... ok -tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_test -tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_test ... ok +tests.unit.core.test_context.ContextTests.test__get_literal_value +tests.unit.core.test_context.ContextTests.test__get_literal_value ... ok +tests.unit.core.test_context.ContextTests.test_call_args +tests.unit.core.test_context.ContextTests.test_call_args ... ok +tests.unit.core.test_context.ContextTests.test_call_args_count +tests.unit.core.test_context.ContextTests.test_call_args_count ... ok +tests.unit.core.test_context.ContextTests.test_call_function_name +tests.unit.core.test_context.ContextTests.test_call_function_name ... ok +tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude +tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude ... ok +tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_cmdline +tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_cmdline ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_multi_bandit_files tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_multi_bandit_files ... ok -Config file '/tmp/tmpymmicvod' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_no_bandit_files tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_no_bandit_files ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_get_options_from_ini_no_ini_path_no_target @@ -1535,49 +1608,183 @@ tests.unit.cli.test_main.BanditCLIMainTests.test_init_extensions ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_arg_val tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_arg_val ... ok -tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_data -tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_data ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_ini_value tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_ini_value ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_no_values tests.unit.cli.test_main.BanditCLIMainTests.test_log_option_source_no_values ... ok +tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_dir +tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_dir ... ok +tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_glob +tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_glob ... ok +tests.unit.core.test_config.TestInit.test_settings +tests.unit.core.test_config.TestInit.test_settings ... ok +tests.unit.core.test_config.TestInit.test_yaml_invalid +tests.unit.core.test_config.TestInit.test_yaml_invalid ... ok +tests.unit.core.test_config.TestConfigCompat.test_bad_yaml +tests.unit.core.test_config.TestConfigCompat.test_bad_yaml ... ok +tests.unit.core.test_context.ContextTests.test_call_function_name_qual +tests.unit.core.test_context.ContextTests.test_call_function_name_qual ... ok +tests.unit.core.test_context.ContextTests.test_call_keywords +tests.unit.core.test_context.ContextTests.test_call_keywords ... ok +tests.unit.core.test_context.ContextTests.test_check_call_arg_value +tests.unit.core.test_context.ContextTests.test_check_call_arg_value ... ok [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. [main] INFO profile include tests: None -Config file '/tmp/tmpcrj7g1kp' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. [main] INFO profile exclude tests: None -Legacy blacklist data found in config, overriding data plugins +tests.unit.core.test_context.ContextTests.test_context_create +tests.unit.core.test_context.ContextTests.test_context_create ... ok [main] INFO cli include tests: None [main] INFO cli exclude tests: None -tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_test -tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_test ... ok +tests.unit.core.test_context.ContextTests.test_function_def_defaults_qual +tests.unit.core.test_context.ContextTests.test_function_def_defaults_qual ... ok +tests.unit.core.test_context.ContextTests.test_get_call_arg_at_position +tests.unit.core.test_context.ContextTests.test_get_call_arg_at_position ... ok +tests.unit.core.test_context.ContextTests.test_get_lineno_for_call_arg +tests.unit.core.test_context.ContextTests.test_get_lineno_for_call_arg ... ok +tests.unit.core.test_context.ContextTests.test_is_module_being_imported +tests.unit.core.test_context.ContextTests.test_is_module_being_imported ... ok +tests.unit.core.test_context.ContextTests.test_is_module_imported_exact +tests.unit.core.test_context.ContextTests.test_is_module_imported_exact ... ok +tests.unit.core.test_context.ContextTests.test_is_module_imported_like +tests.unit.core.test_context.ContextTests.test_is_module_imported_likeConfig file '/tmp/tmp7pow5vin' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +Config file '' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Config file '' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. + ... ok +tests.unit.core.test_context.ContextTests.test_node +tests.unit.core.test_context.ContextTests.test_node ... ok +tests.unit.core.test_context.ContextTests.test_repr +tests.unit.core.test_context.ContextTests.test_repr ... ok +tests.unit.core.test_context.ContextTests.test_statement +tests.unit.core.test_context.ContextTests.test_statement ... ok +tests.unit.core.test_context.ContextTests.test_string_val +tests.unit.core.test_context.ContextTests.test_string_val ... ok +tests.unit.core.test_manager.ManagerTests.test_discover_files_include +tests.unit.core.test_manager.ManagerTests.test_discover_files_include ... ok +tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_files +tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_files ... ok +Skipping directory (thing), use -r flag to scan contents [main] WARNING Could not open baseline report: base.json +tests.unit.formatters.test_text.TextFormatterTests.test_report_nobaseline +tests.unit.formatters.test_text.TextFormatterTests.test_report_nobaseline ... ok +tests.unit.formatters.test_csv.CsvFormatterTests.test_report +tests.unit.formatters.test_csv.CsvFormatterTests.test_report ... ok +tests.unit.formatters.test_screen.ScreenFormatterTests.test_no_issues +tests.unit.formatters.test_screen.ScreenFormatterTests.test_no_issues ... ok +tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_skip +tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_skip ... ok +tests.unit.core.test_config.TestConfigCompat.test_blacklist_error +tests.unit.core.test_config.TestConfigCompat.test_blacklist_error ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_main_baseline_ioerror tests.unit.cli.test_main.BanditCLIMainTests.test_main_baseline_ioerror ... ok +tests.unit.formatters.test_screen.ScreenFormatterTests.test_output_issue +tests.unit.formatters.test_screen.ScreenFormatterTests.test_output_issue ... ok +tests.unit.core.test_manager.ManagerTests.test_find_candidate_matches +tests.unit.core.test_manager.ManagerTests.test_find_candidate_matches ... ok [main] ERROR bandit.yaml : Could not read config file. -Config file '/tmp/tmp7fw3lkkg' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins +tests.unit.core.test_manager.ManagerTests.test_get_files_from_dir +tests.unit.core.test_manager.ManagerTests.test_get_files_from_dir ... ok +tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_baseline +tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_baseline ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_main_config_unopenable tests.unit.cli.test_main.BanditCLIMainTests.test_main_config_unopenable ... ok -tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_node -tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_node ... ok -tests.unit.core.test_config.TestConfigCompat.test_converted_exclude -tests.unit.core.test_config.TestConfigCompat.test_converted_exclude ... ok -[ INFO ] No output format specified, using terminal +tests.unit.core.test_manager.ManagerTests.test_is_file_included +tests.unit.core.test_manager.ManagerTests.test_is_file_included ... ok +tests.unit.core.test_manager.ManagerTests.test_matches_globlist +tests.unit.core.test_manager.ManagerTests.test_matches_globlist ... ok +Config file '/tmp/tmpsqh96dkh' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_data +tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_data ... ok [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. [main] INFO profile include tests: None [main] INFO profile exclude tests: None [main] INFO cli include tests: None [main] INFO cli exclude tests: None -Config file '/tmp/tmp_a16tzx0' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins +tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_nobaseline +tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_nobaseline ... ok +tests.unit.core.test_manager.ManagerTests.test_output_results_invalid_format +tests.unit.core.test_manager.ManagerTests.test_output_results_invalid_format ... ok +tests.unit.core.test_manager.ManagerTests.test_output_results_valid_format +tests.unit.core.test_manager.ManagerTests.test_output_results_valid_format ... ok [main] INFO using config: bandit.yaml [main] INFO running on Python 3.9.2 [text] INFO Text output written to file: output -tests.unit.core.test_config.TestConfigCompat.test_converted_exclude_blacklist -tests.unit.core.test_config.TestConfigCompat.test_converted_exclude_blacklist ... ok +tests.unit.core.test_manager.ManagerTests.test_populate_baseline_invalid_json +tests.unit.core.test_manager.ManagerTests.test_populate_baseline_invalid_json ... ok +tests.unit.core.test_manager.ManagerTests.test_populate_baseline_success +tests.unit.core.test_manager.ManagerTests.test_populate_baseline_success ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_no_results tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_no_results ... ok -[ ERROR ] Current working directory is dirty and must be resolved +Config file '/tmp/tmpol7x93o7' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +tests.unit.core.test_manager.ManagerTests.test_results_count +tests.unit.core.test_manager.ManagerTests.test_results_count ... ok +tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_test +tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_call_test ... ok +tests.unit.core.test_manager.ManagerTests.test_run_tests_ioerror +tests.unit.core.test_manager.ManagerTests.test_run_tests_ioerror ... ok +Run started:2022-09-12 14:21:04.281091 + +Test results: +ISSUE_OUTPUT_TEXT +-------------------------------------------------- +ISSUE_OUTPUT_TEXT + +-- Candidate Issues -- +ISSUE_OUTPUT_TEXT + + +ISSUE_OUTPUT_TEXT + + +-------------------------------------------------- + +Code scanned: + Total lines of code: 0 + Total lines skipped (#nosec): 0 + +Run metrics: + Total issues (by severity): + Undefined: 0 + Low: 0 + Medium: 0 + High: 0 + Total issues (by confidence): + Undefined: 0 + Low: 0 + Medium: 0 + High: 0 +Files skipped (0): +Run started:2022-09-12 14:21:04.329124 +Files in scope (1): + binding.py (score: {SEVERITY: 1, CONFIDENCE: 1}) +Files excluded (1): + def.py + +Test results: +ISSUE_OUTPUT_TEXT +-------------------------------------------------- +ISSUE_OUTPUT_TEXT +-------------------------------------------------- + +Code scanned: + Total lines of code: 1000 + Total lines skipped (#nosec): 50 + +Run metrics: + Total issues (by severity): + Undefined: 1 + Low: 1 + Medium: 1 + High: 1 + Total issues (by confidence): + Undefined: 1 + Low: 1 + Medium: 1 + High: 1 +Files skipped (1): + abc.py (File is bad) [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. [main] INFO profile include tests: None [main] INFO profile exclude tests: None @@ -1586,14 +1793,19 @@ [main] INFO using config: bandit.yaml [main] INFO running on Python 3.9.2 [text] INFO Text output written to file: output -Config file '/tmp/tmpffw0iz4p' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -Legacy blacklist data found in config, overriding data plugins -tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_type -tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_type ... ok -tests.unit.core.test_config.TestConfigCompat.test_converted_include -tests.unit.core.test_config.TestConfigCompat.test_converted_include ... ok +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_get_config_settings +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_get_config_settings ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_results tests.unit.cli.test_main.BanditCLIMainTests.test_main_exit_with_results ... ok +[ INFO ] No output format specified, using terminal +Config file '/tmp/tmpjpz5u8my' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_data +tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_data ... ok +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_main_show_defaults +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_main_show_defaults ... ok +tests.unit.core.test_manager.ManagerTests.test_run_tests_keyboardinterrupt +tests.unit.core.test_manager.ManagerTests.test_run_tests_keyboardinterrupt ... ok [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. [main] INFO Using ini file for excluded paths [main] INFO Using ini file for skipped tests @@ -1601,23 +1813,32 @@ [main] INFO Using command line arg for selected targets [main] INFO profile include tests: None [main] INFO profile exclude tests: None +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_no_defaults +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_no_defaults ... ok [main] INFO cli include tests: some_test [main] INFO cli exclude tests: skip_test -Config file '/tmp/tmplr0zmthu' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +[ ERROR ] Current working directory is dirty and must be resolved +Config file '/tmp/tmpvnhzu4cr' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. Legacy blacklist data found in config, overriding data plugins -tests.unit.core.test_config.TestConfigCompat.test_deprecation_message -tests.unit.core.test_config.TestConfigCompat.test_deprecation_message ... ok +tests.unit.cli.test_main.BanditCLIMainTests.test_main_handle_ini_options +tests.unit.cli.test_main.BanditCLIMainTests.test_main_handle_ini_options ... ok +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_out_file +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_out_file ... ok +tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_test +tests.unit.core.test_config.TestConfigCompat.test_converted_blacklist_import_test ... ok +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_dirty_repo +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_dirty_repo ... ok +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_show_defaults +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_parse_args_show_defaults ... ok +[main] ERROR : tests.unit.core.test_issue.IssueTests.test_get_code tests.unit.core.test_issue.IssueTests.test_get_code ... ok -[main] ERROR : -tests.unit.core.test_config.TestGetOption.test_levels -tests.unit.core.test_config.TestGetOption.test_levels ... ok tests.unit.core.test_issue.IssueTests.test_issue_as_dict tests.unit.core.test_issue.IssueTests.test_issue_as_dict ... ok +tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_config +tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_config ... ok tests.unit.core.test_issue.IssueTests.test_issue_create tests.unit.core.test_issue.IssueTests.test_issue_create ... ok -tests.unit.cli.test_main.BanditCLIMainTests.test_main_handle_ini_options -tests.unit.cli.test_main.BanditCLIMainTests.test_main_handle_ini_options ... ok tests.unit.core.test_issue.IssueTests.test_issue_filter_confidence tests.unit.core.test_issue.IssueTests.test_issue_filter_confidence ... ok tests.unit.core.test_issue.IssueTests.test_issue_filter_severity @@ -1626,226 +1847,123 @@ tests.unit.core.test_issue.IssueTests.test_issue_str ... ok tests.unit.core.test_issue.IssueTests.test_matches_issue tests.unit.core.test_issue.IssueTests.test_matches_issue ... ok -tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_config -tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_config ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_has_defaults -tests.unit.core.test_test_set.BanditTestSetTests.test_has_defaults ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_blacklist_compat -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_blacklist_compat ... ok -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_dirty_repo -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_dirty_repo ... ok -tests.unit.core.test_config.TestGetOption.test_levels_not_exist -tests.unit.core.test_config.TestGetOption.test_levels_not_exist ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist ... ok +Config file '/tmp/tmpptsck7d1' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. [main] INFO profile include tests: None [main] INFO profile exclude tests: None -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist_specific -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist_specific ... ok [main] INFO cli include tests: None [main] INFO cli exclude tests: None -tests.unit.formatters.test_csv.CsvFormatterTests.test_report -tests.unit.formatters.test_csv.CsvFormatterTests.test_report ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_id -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_id ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_none -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_none ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_all -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_all ... ok -tests.unit.formatters.test_json.JsonFormatterTests.test_report -tests.unit.formatters.test_json.JsonFormatterTests.test_report ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_include -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_include ... ok -tests.unit.formatters.test_html.HtmlFormatterTests.test_escaping -tests.unit.formatters.test_html.HtmlFormatterTests.test_escaping ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_none -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_none ... ok -tests.unit.formatters.test_text.TextFormatterTests.test_no_issues -tests.unit.formatters.test_text.TextFormatterTests.test_no_issues ... ok -tests.unit.formatters.test_text.TextFormatterTests.test_output_issue -tests.unit.formatters.test_text.TextFormatterTests.test_output_issue ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_one -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_one ... ok -tests.unit.formatters.test_text.TextFormatterTests.test_report_baseline -tests.unit.formatters.test_text.TextFormatterTests.test_report_baseline ... ok +tests.unit.core.test_config.TestConfigCompat.test_converted_exclude +tests.unit.core.test_config.TestConfigCompat.test_converted_exclude ... ok [main] WARNING Baseline must be used with one of the following formats: ['custom', 'html', 'json', 'screen', 'txt'] +tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_node +tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_node ... ok +tests.unit.formatters.test_yaml.YamlFormatterTests.test_report +tests.unit.formatters.test_yaml.YamlFormatterTests.test_report ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_output_format tests.unit.cli.test_main.BanditCLIMainTests.test_main_invalid_output_format ... ok -tests.unit.formatters.test_text.TextFormatterTests.test_report_nobaseline -tests.unit.formatters.test_text.TextFormatterTests.test_report_nobaseline ... ok -tests.unit.core.test_util.UtilTests.test_check_ast_node_good -tests.unit.core.test_util.UtilTests.test_check_ast_node_good ... ok +tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_type +tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_type ... ok [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. -tests.unit.formatters.test_html.HtmlFormatterTests.test_report_contents -tests.unit.formatters.test_html.HtmlFormatterTests.test_report_contents ... ok +Config file '/tmp/tmp65k0g20n' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +tests.unit.core.test_config.TestConfigCompat.test_converted_exclude_blacklist +tests.unit.core.test_config.TestConfigCompat.test_converted_exclude_blacklist ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_main_profile_not_found tests.unit.cli.test_main.BanditCLIMainTests.test_main_profile_not_found ... ok -tests.unit.formatters.test_html.HtmlFormatterTests.test_report_with_skipped -tests.unit.formatters.test_html.HtmlFormatterTests.test_report_with_skipped ... ok +tests.unit.core.test_util.UtilTests.test_check_ast_node_good +tests.unit.core.test_util.UtilTests.test_check_ast_node_good ... ok [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. [main] INFO profile include tests: None [main] INFO profile exclude tests: None [main] INFO cli include tests: None [main] INFO cli exclude tests: badID [main] ERROR Unknown test found in profile: badID +Config file '/tmp/tmp0vuytfv0' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +tests.unit.core.test_config.TestConfigCompat.test_converted_include +tests.unit.core.test_config.TestConfigCompat.test_converted_include ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_main_unknown_skip_tests tests.unit.cli.test_main.BanditCLIMainTests.test_main_unknown_skip_tests ... ok -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_has_builtin_blacklist -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_has_builtin_blacklist ... ok [config] WARNING Config file 'bandit.yaml' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. [main] INFO profile include tests: None [main] INFO profile exclude tests: None -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_id -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_id ... ok [main] INFO cli include tests: badID [main] INFO cli exclude tests: None [main] ERROR Unknown test found in profile: badID -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_none -tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_none ... ok +Config file '/tmp/tmpxxjobrxi' contains deprecated legacy config data. Please consider upgrading to the new config format. The tool 'bandit-config-generator' can help you with this. Support for legacy configs will be removed in a future bandit version. +Legacy blacklist data found in config, overriding data plugins +tests.unit.core.test_config.TestConfigCompat.test_deprecation_message +tests.unit.core.test_config.TestConfigCompat.test_deprecation_message ... ok tests.unit.cli.test_main.BanditCLIMainTests.test_main_unknown_tests tests.unit.cli.test_main.BanditCLIMainTests.test_main_unknown_tests ... ok tests.unit.core.test_meta_ast.BanditMetaAstTests.test_add_node tests.unit.core.test_meta_ast.BanditMetaAstTests.test_add_node ... ok tests.unit.core.test_meta_ast.BanditMetaAstTests.test_str tests.unit.core.test_meta_ast.BanditMetaAstTests.test_str ... ok -[screen] INFO Screen formatter output was not written to file: /tmp/tmpn0hxuv20, consider '-f txt' -[main] DEBUG logging initialized -[screen] INFO Screen formatter output was not written to file: /tmp/tmp7ufbmblz, consider '-f txt' -[screen] INFO Screen formatter output was not written to file: /tmp/tmp39w_2853, consider '-f txt' -tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger -tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger ... ok -tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger_debug_mode -tests.unit.cli.test_main.BanditCLIMainLoggerTests.test_init_logger_debug_mode ... ok -[screen] INFO Screen formatter output was not written to file: /tmp/tmp39w_2853, consider '-f txt' tests.unit.core.test_util.UtilTests.test_deepgetattr tests.unit.core.test_util.UtilTests.test_deepgetattr ... ok -tests.unit.core.test_context.ContextTests.test__get_literal_value -tests.unit.core.test_context.ContextTests.test__get_literal_value ... ok -tests.unit.core.test_context.ContextTests.test_call_args -tests.unit.core.test_context.ContextTests.test_call_args ... ok -tests.unit.core.test_context.ContextTests.test_call_args_count -tests.unit.core.test_context.ContextTests.test_call_args_count ... ok -tests.unit.core.test_context.ContextTests.test_call_function_name -tests.unit.core.test_context.ContextTests.test_call_function_name ... ok -tests.unit.core.test_context.ContextTests.test_call_function_name_qual -tests.unit.core.test_context.ContextTests.test_call_function_name_qual ... ok -tests.unit.core.test_context.ContextTests.test_call_keywords -tests.unit.core.test_context.ContextTests.test_call_keywords ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_has_defaults +tests.unit.core.test_test_set.BanditTestSetTests.test_has_defaults ... ok +[html] INFO HTML output written to file: /tmp/tmp44gr1ane +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_blacklist_compat +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_blacklist_compat ... ok +tests.unit.formatters.test_html.HtmlFormatterTests.test_escaping +tests.unit.formatters.test_html.HtmlFormatterTests.test_escaping ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist_specific +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_builtin_blacklist_specific ... ok +[html] INFO HTML output written to file: /tmp/tmp31o2yjfa +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_id +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_id ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_none +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_exclude_none ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_all +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_all ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_include +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_include ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_none +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_none ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_one +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_filter_blacklist_one ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_has_builtin_blacklist +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_has_builtin_blacklist ... ok +tests.unit.formatters.test_html.HtmlFormatterTests.test_report_contents +tests.unit.formatters.test_html.HtmlFormatterTests.test_report_contents ... ok +[html] INFO HTML output written to file: /tmp/tmpqwg1p0_a tests.unit.core.test_util.UtilTests.test_escaped_representation_invalid tests.unit.core.test_util.UtilTests.test_escaped_representation_invalid ... ok -tests.unit.core.test_context.ContextTests.test_check_call_arg_value -tests.unit.core.test_context.ContextTests.test_check_call_arg_value ... ok -tests.unit.core.test_context.ContextTests.test_context_create -tests.unit.core.test_context.ContextTests.test_context_create ... ok +[ ERROR ] File bandit_baseline_result.txt already exists, aborting +tests.unit.formatters.test_html.HtmlFormatterTests.test_report_with_skipped +tests.unit.formatters.test_html.HtmlFormatterTests.test_report_with_skipped ... ok +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_report_file +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_report_file ... ok tests.unit.core.test_util.UtilTests.test_escaped_representation_mixed tests.unit.core.test_util.UtilTests.test_escaped_representation_mixed ... ok -tests.unit.formatters.test_screen.ScreenFormatterTests.test_no_issues -tests.unit.formatters.test_screen.ScreenFormatterTests.test_no_issues ... ok -tests.unit.formatters.test_screen.ScreenFormatterTests.test_output_issue -tests.unit.formatters.test_screen.ScreenFormatterTests.test_output_issue ... ok -tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_baseline -tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_baseline ... ok -tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_nobaseline -tests.unit.formatters.test_screen.ScreenFormatterTests.test_report_nobaseline ... ok -tests.unit.core.test_context.ContextTests.test_function_def_defaults_qual -tests.unit.core.test_context.ContextTests.test_function_def_defaults_qual ... ok -tests.unit.core.test_context.ContextTests.test_get_call_arg_at_position -tests.unit.core.test_context.ContextTests.test_get_call_arg_at_position ... ok -tests.unit.core.test_context.ContextTests.test_get_lineno_for_call_arg -tests.unit.core.test_context.ContextTests.test_get_lineno_for_call_arg ... ok -tests.unit.core.test_context.ContextTests.test_is_module_being_imported -tests.unit.core.test_context.ContextTests.test_is_module_being_imported ... ok -tests.unit.core.test_context.ContextTests.test_is_module_imported_exact -tests.unit.core.test_context.ContextTests.test_is_module_imported_exact ... ok -tests.unit.core.test_context.ContextTests.test_is_module_imported_like -tests.unit.core.test_context.ContextTests.test_is_module_imported_like ... ok -tests.unit.core.test_context.ContextTests.test_node -tests.unit.core.test_context.ContextTests.test_node ... ok -tests.unit.core.test_context.ContextTests.test_repr -tests.unit.core.test_context.ContextTests.test_repr ... ok -tests.unit.core.test_context.ContextTests.test_statement -tests.unit.core.test_context.ContextTests.test_statement ... ok -tests.unit.core.test_context.ContextTests.test_string_val -tests.unit.core.test_context.ContextTests.test_string_val ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_id +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_id ... ok +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_none +tests.unit.core.test_test_set.BanditTestSetTests.test_profile_include_none ... ok tests.unit.core.test_util.UtilTests.test_escaped_representation_simple tests.unit.core.test_util.UtilTests.test_escaped_representation_simple ... ok +tests.unit.formatters.test_xml.XmlFormatterTests.test_report +tests.unit.formatters.test_xml.XmlFormatterTests.test_report ... ok tests.unit.core.test_util.UtilTests.test_escaped_representation_valid_not_printable tests.unit.core.test_util.UtilTests.test_escaped_representation_valid_not_printable ... ok -tests.unit.formatters.test_yaml.YamlFormatterTests.test_report -tests.unit.formatters.test_yaml.YamlFormatterTests.test_report ... ok -Run started:2021-08-10 07:54:49.935790 - -Test results: -ISSUE_OUTPUT_TEXT --------------------------------------------------- -ISSUE_OUTPUT_TEXT - --- Candidate Issues -- -ISSUE_OUTPUT_TEXT - - -ISSUE_OUTPUT_TEXT - - --------------------------------------------------- - -Code scanned: - Total lines of code: 0 - Total lines skipped (#nosec): 0 - -Run metrics: - Total issues (by severity): - Undefined: 0 - Low: 0 - Medium: 0 - High: 0 - Total issues (by confidence): - Undefined: 0 - Low: 0 - Medium: 0 - High: 0 -Files skipped (0): -Run started:2021-08-10 07:54:49.943481 -Files in scope (1): - binding.py (score: {SEVERITY: 1, CONFIDENCE: 1}) -Files excluded (1): - def.py - -Test results: -ISSUE_OUTPUT_TEXT --------------------------------------------------- -ISSUE_OUTPUT_TEXT --------------------------------------------------- - -Code scanned: - Total lines of code: 1000 - Total lines skipped (#nosec): 50 - -Run metrics: - Total issues (by severity): - Undefined: 1 - Low: 1 - Medium: 1 - High: 1 - Total issues (by confidence): - Undefined: 1 - Low: 1 - Medium: 1 - High: 1 -Files skipped (1): - abc.py (File is bad) tests.unit.core.test_util.UtilTests.test_get_call_name1 tests.unit.core.test_util.UtilTests.test_get_call_name1 ... ok tests.unit.core.test_util.UtilTests.test_get_call_name2 tests.unit.core.test_util.UtilTests.test_get_call_name2 ... ok -[ ERROR ] File bandit_baseline_result.txt already exists, aborting -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_report_file -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_report_file ... ok +[ INFO ] No output format specified, using terminal tests.unit.core.test_util.UtilTests.test_get_call_name3 tests.unit.core.test_util.UtilTests.test_get_call_name3 ... ok +[ ERROR ] Temporary file _bandit_baseline_run.json_ needs to be removed prior to running tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_abs_missingend tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_abs_missingend ... ok +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_temp_file +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_temp_file ... ok tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_abs_missingmid tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_abs_missingmid ... ok tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_abs_syms @@ -1860,25 +1978,33 @@ tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_missingend ... ok tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_missingmid tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_missingmid ... ok +[ INFO ] No output format specified, using terminal +[ ERROR ] Git command not found +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_git_command_failure +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_git_command_failure ... ok +[ INFO ] No output format specified, using terminal +[ ERROR ] Bandit baseline must be called from a git project root +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_no_repo +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_no_repo ... ok tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_syms tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_syms ... ok tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_typical tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_rel_typical ... ok tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_sys tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_sys ... ok +[ INFO ] No output format specified, using terminal tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_with_dot tests.unit.core.test_util.UtilTests.test_get_module_qualname_from_path_with_dot ... ok -[ INFO ] No output format specified, using terminal +[ ERROR ] Bandit baseline must not be called with the -o option tests.unit.core.test_util.UtilTests.test_linerange tests.unit.core.test_util.UtilTests.test_linerange ... ok -[ ERROR ] Temporary file _bandit_baseline_run.json_ needs to be removed prior to running +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_with_output_argument +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_with_output_argument ... ok tests.unit.core.test_util.UtilTests.test_namespace_path_join tests.unit.core.test_util.UtilTests.test_namespace_path_join ... ok -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_temp_file -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_temp_file ... ok tests.unit.core.test_util.UtilTests.test_namespace_path_split tests.unit.core.test_util.UtilTests.test_namespace_path_split ... ok -Unable to parse config file /tmp/tmpvvwulwod or missing [bandit] section +Unable to parse config file /tmp/tmpvss6telt or missing [bandit] section tests.unit.core.test_util.UtilTests.test_parse_ini_file tests.unit.core.test_util.UtilTests.test_parse_ini_file ... ok tests.unit.core.test_util.UtilTests.test_path_for_function @@ -1889,7 +2015,8 @@ Cannot resolve file where 1 is defined tests.unit.core.test_util.UtilTests.test_path_for_function_no_module tests.unit.core.test_util.UtilTests.test_path_for_function_no_module ... ok - +[ INFO ] No output format specified, using terminal + usage: bandit-config-generator [-h] [--show-defaults] [-o OUTPUT_FILE] [-t TESTS] [-s SKIPS] @@ -1913,24 +2040,11 @@ list of test names to run -s SKIPS, --skip SKIPS list of test names to skip -[ INFO ] No output format specified, using terminal -[ ERROR ] Git command not found -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_git_command_failure -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_git_command_failure ... ok -[ INFO ] No output format specified, using terminal -[ ERROR ] Bandit baseline must be called from a git project root -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_no_repo -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_no_repo ... ok -[ INFO ] No output format specified, using terminal -[ ERROR ] Bandit baseline must not be called with the -o option -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_with_output_argument -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_with_output_argument ... ok -[ INFO ] No output format specified, using terminal [ ERROR ] Unable to get current or parent commit tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_git_command_failure tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_git_command_failure ... ok [ INFO ] No output format specified, using terminal -[ INFO ] Got current commit: [7b14d32473a916be8f505608a6611878246d85f0 master] +[ INFO ] Got current commit: [36f546f4d647c04e8546ad7277da7ab6b0e669d1 master] [ ERROR ] Parent commit not available tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_no_parent_commit tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_no_parent_commit ... ok @@ -1939,82 +2053,41 @@ tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_non_repo tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_non_repo ... ok [ INFO ] No output format specified, using terminal -[ INFO ] Got current commit: [cf52c20be72797f8fbef81b6e89ed51b1a2dc848 master] -[ INFO ] Got parent commit: [7b14d32473a916be8f505608a6611878246d85f0 master~1] +[ INFO ] Got current commit: [ff98ee9600ace291942484601fed2c43bf214ae9 master] +[ INFO ] Got parent commit: [36f546f4d647c04e8546ad7277da7ab6b0e669d1 master~1] [ INFO ] Getting Bandit baseline results -[ ERROR ] Error running command: ['discover', '-t', './', './tests', '--load-list', '/tmp/tmp9on16q7n'] +[ ERROR ] Error running command: ['discover', '-t', './', './tests', '--load-list', '/tmp/tmpe4x3tgfr'] Output: None [ INFO ] Comparing Bandit results to baseline -[ ERROR ] Error running command: ['discover', '-t', './', './tests', '--load-list', '/tmp/tmp9on16q7n'] +[ ERROR ] Error running command: ['discover', '-t', './', './tests', '--load-list', '/tmp/tmpe4x3tgfr'] Output: None tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_subprocess_error tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_subprocess_error ... ok -tests.unit.cli.test_config_generator.BanditConfigGeneratorLoggerTests.test_init_logger -tests.unit.cli.test_config_generator.BanditConfigGeneratorLoggerTests.test_init_logger ... ok -tests.unit.core.test_manager.ManagerTests.test_compare_baseline -tests.unit.core.test_manager.ManagerTests.test_compare_baseline ... ok -tests.unit.core.test_manager.ManagerTests.test_create_manager -tests.unit.core.test_manager.ManagerTests.test_create_manager ... ok -tests.unit.core.test_manager.ManagerTests.test_create_manager_with_profile -tests.unit.core.test_manager.ManagerTests.test_create_manager_with_profile ... ok -tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude -tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude ... ok -tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_cmdline -tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_cmdline ... ok -tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_dir -tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_dir ... ok -tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_glob -tests.unit.core.test_manager.ManagerTests.test_discover_files_exclude_glob ... ok -tests.unit.core.test_manager.ManagerTests.test_discover_files_include -tests.unit.core.test_manager.ManagerTests.test_discover_files_include ... ok -tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_files -tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_files ... ok -Skipping directory (thing), use -r flag to scan contents -tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_skip -tests.unit.core.test_manager.ManagerTests.test_discover_files_recurse_skip ... ok -tests.unit.core.test_manager.ManagerTests.test_find_candidate_matches -tests.unit.core.test_manager.ManagerTests.test_find_candidate_matches ... ok -tests.unit.core.test_manager.ManagerTests.test_get_files_from_dir -tests.unit.core.test_manager.ManagerTests.test_get_files_from_dir ... ok -tests.unit.core.test_manager.ManagerTests.test_is_file_included -tests.unit.core.test_manager.ManagerTests.test_is_file_included ... ok -tests.unit.core.test_manager.ManagerTests.test_matches_globlist -tests.unit.core.test_manager.ManagerTests.test_matches_globlist ... ok -tests.unit.core.test_manager.ManagerTests.test_output_results_invalid_format -tests.unit.core.test_manager.ManagerTests.test_output_results_invalid_format ... ok -tests.unit.core.test_manager.ManagerTests.test_output_results_valid_format -tests.unit.core.test_manager.ManagerTests.test_output_results_valid_format ... ok -tests.unit.core.test_manager.ManagerTests.test_populate_baseline_invalid_json -tests.unit.core.test_manager.ManagerTests.test_populate_baseline_invalid_json ... ok -tests.unit.core.test_manager.ManagerTests.test_populate_baseline_success -tests.unit.core.test_manager.ManagerTests.test_populate_baseline_success ... ok -tests.unit.core.test_manager.ManagerTests.test_results_count -tests.unit.core.test_manager.ManagerTests.test_results_count ... ok -tests.unit.core.test_manager.ManagerTests.test_run_tests_ioerror -tests.unit.core.test_manager.ManagerTests.test_run_tests_ioerror ... ok -tests.unit.core.test_manager.ManagerTests.test_run_tests_keyboardinterrupt -tests.unit.core.test_manager.ManagerTests.test_run_tests_keyboardinterrupt ... ok +tests.unit.core.test_config.TestGetSetting.test_not_exist +tests.unit.core.test_config.TestGetSetting.test_not_exist ... ok +tests.unit.formatters.test_json.JsonFormatterTests.test_report +tests.unit.formatters.test_json.JsonFormatterTests.test_report ... ok None ---------------------------------------------------------------------- -Ran 161 tests in 9.253s +Ran 161 tests in 25.225s OK + stestr slowest Test id Runtime (s) ----------------------------------------------------------------------------------------- ----------- -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_dirty_repo 0.383 -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_report_file 0.352 -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_subprocess_error 0.178 -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_temp_file 0.150 -tests.unit.formatters.test_yaml.YamlFormatterTests.test_report 0.104 -tests.unit.core.test_util.UtilTests.test_check_ast_node_good 0.102 -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_git_command_failure 0.099 -tests.unit.core.test_util.UtilTests.test_check_ast_node_bad_node 0.099 -tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_no_parent_commit 0.097 -tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_get_config_settings 0.097 +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_report_file 0.822 +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_dirty_repo 0.771 +tests.unit.cli.test_config_generator.BanditConfigGeneratorTests.test_get_config_settings 0.665 +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_existing_temp_file 0.611 +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_subprocess_error 0.478 +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_git_command_failure 0.458 +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_git_command_failure 0.324 +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_initialize_with_output_argument 0.277 +tests.unit.core.test_util.UtilTests.test_escaped_representation_invalid 0.273 +tests.unit.cli.test_baseline.BanditBaselineToolTests.test_main_no_parent_commit 0.255 + rm -rf .stestr # Generate the config file mkdir -p /build/bandit-1.6.2/debian/bandit/etc/bandit @@ -2040,9 +2113,9 @@ make[1]: pyversions: No such file or directory py3versions: no X-Python3-Version in control file, using supported versions dh_python3 --shebang=/usr/bin/python3 -I: dh_python3 tools:114: replacing shebang in debian/python3-bandit/usr/bin/bandit-config-generator -I: dh_python3 tools:114: replacing shebang in debian/python3-bandit/usr/bin/bandit-baseline I: dh_python3 tools:114: replacing shebang in debian/python3-bandit/usr/bin/bandit +I: dh_python3 tools:114: replacing shebang in debian/python3-bandit/usr/bin/bandit-baseline +I: dh_python3 tools:114: replacing shebang in debian/python3-bandit/usr/bin/bandit-config-generator make[1]: Leaving directory '/build/bandit-1.6.2' debian/rules override_dh_installinit make[1]: Entering directory '/build/bandit-1.6.2' @@ -2055,14 +2128,14 @@ cat /usr/share/openstack-pkg-tools/init-script-template >>$MYINIT.init ; \ pkgos-gen-systemd-unit $i ; \ done -+ ls -1 debian/*.init.in +++ ls -1 'debian/*.init.in' ls: cannot access 'debian/*.init.in': No such file or directory # If there's a service.in file, use that one instead of the generated one set -e ; set -x ; for i in `ls -1 debian/*.service.in`; do \ MYPKG=`echo $i | sed s/.service.in//` ; \ cp $MYPKG.service.in $MYPKG.service ; \ done -+ ls -1 debian/*.service.in +++ ls -1 'debian/*.service.in' ls: cannot access 'debian/*.service.in': No such file or directory # Generate the systemd unit if there's no already existing .service.in set -e ; set -x ; for i in `ls debian/*.init.in` ; do \ @@ -2071,7 +2144,7 @@ pkgos-gen-systemd-unit $i ; \ fi \ done -+ ls debian/*.init.in +++ ls 'debian/*.init.in' ls: cannot access 'debian/*.init.in': No such file or directory dh_installinit --error-handler=true make[1]: Leaving directory '/build/bandit-1.6.2' @@ -2106,12 +2179,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/16176/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/16176/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/19368 and its subdirectories -I: Current time: Mon Aug 9 19:55:02 -12 2021 -I: pbuilder-time-stamp: 1628582102 +I: removing directory /srv/workspace/pbuilder/16176 and its subdirectories +I: Current time: Tue Sep 13 04:21:27 +14 2022 +I: pbuilder-time-stamp: 1662992487