Diff of the two buildlogs: -- --- b1/build.log 2021-08-15 08:32:27.975954132 +0000 +++ b2/build.log 2021-08-15 08:39:12.896807774 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Aug 14 20:27:22 -12 2021 -I: pbuilder-time-stamp: 1629016042 +I: Current time: Sun Aug 15 22:32:48 +14 2021 +I: pbuilder-time-stamp: 1629016368 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 [./golang-github-rogpeppe-go-internal_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.v9DoW1Wy/trustedkeys.kbx': General error -gpgv: Signature made Thu Oct 22 21:09:39 2020 -12 +gpgv: keyblock resource '/tmp/dpkg-verify-sig.u84wMep8/trustedkeys.kbx': General error +gpgv: Signature made Fri Oct 23 23:09:39 2020 +14 gpgv: using RSA key 142421B19AD4A95996F95072EA2500B412C59ACF gpgv: issuer "foka@debian.org" gpgv: Can't check signature: No public key @@ -27,135 +27,169 @@ dpkg-source: info: unpacking golang-github-rogpeppe-go-internal_1.6.2-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/11131/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/31980/tmp/hooks/D01_modify_environment starting +debug: Running on wbq0. +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/31980/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/31980/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='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=3' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='armhf' + 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]="arm-unknown-linux-gnueabihf") + 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=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all,-fixfilepath parallel=4' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='9d5d7afaea704c509b55abd984f9a43f' - 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='11131' - PS1='# ' - PS2='> ' + INVOCATION_ID=ec9d983a32bc4211be907a22046644f2 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + 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=31980 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.4g4ZXiftIt/pbuilderrc_E5kr --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.4g4ZXiftIt/b1 --logfile b1/build.log golang-github-rogpeppe-go-internal_1.6.2-1.dsc' - SUDO_GID='114' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:8000/' + 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.4g4ZXiftIt/pbuilderrc_ugkC --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bullseye-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.4g4ZXiftIt/b2 --logfile b2/build.log --extrapackages usrmerge golang-github-rogpeppe-go-internal_1.6.2-1.dsc' + SUDO_GID=113 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:8000/ I: uname -a - Linux jtx1b 5.10.0-8-arm64 #1 SMP Debian 5.10.46-4 (2021-08-03) aarch64 GNU/Linux + Linux i-capture-the-hostname 5.10.0-8-armmp #1 SMP Debian 5.10.46-4 (2021-08-03) armv7l GNU/Linux I: ls -l /bin total 3580 - -rwxr-xr-x 1 root root 816764 Aug 4 08:25 bash - -rwxr-xr-x 3 root root 26052 Jul 20 2020 bunzip2 - -rwxr-xr-x 3 root root 26052 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 26052 Jul 20 2020 bzip2 - -rwxr-xr-x 1 root root 9636 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 26668 Sep 22 2020 cat - -rwxr-xr-x 1 root root 43104 Sep 22 2020 chgrp - -rwxr-xr-x 1 root root 38984 Sep 22 2020 chmod - -rwxr-xr-x 1 root root 43112 Sep 22 2020 chown - -rwxr-xr-x 1 root root 92616 Sep 22 2020 cp - -rwxr-xr-x 1 root root 75524 Dec 10 2020 dash - -rwxr-xr-x 1 root root 75880 Sep 22 2020 date - -rwxr-xr-x 1 root root 55436 Sep 22 2020 dd - -rwxr-xr-x 1 root root 59912 Sep 22 2020 df - -rwxr-xr-x 1 root root 96764 Sep 22 2020 dir - -rwxr-xr-x 1 root root 55012 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 22508 Sep 22 2020 echo - -rwxr-xr-x 1 root root 28 Nov 9 2020 egrep - -rwxr-xr-x 1 root root 22496 Sep 22 2020 false - -rwxr-xr-x 1 root root 28 Nov 9 2020 fgrep - -rwxr-xr-x 1 root root 47492 Jul 28 07:09 findmnt - -rwsr-xr-x 1 root root 26076 Feb 26 04:12 fusermount - -rwxr-xr-x 1 root root 124508 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 64212 Mar 2 11:30 gzip - -rwxr-xr-x 1 root root 13784 Nov 6 2019 hostname - -rwxr-xr-x 1 root root 43180 Sep 22 2020 ln - -rwxr-xr-x 1 root root 35068 Feb 7 2020 login - -rwxr-xr-x 1 root root 96764 Sep 22 2020 ls - -rwxr-xr-x 1 root root 99940 Jul 28 07:09 lsblk - -rwxr-xr-x 1 root root 51408 Sep 22 2020 mkdir - -rwxr-xr-x 1 root root 43184 Sep 22 2020 mknod - -rwxr-xr-x 1 root root 30780 Sep 22 2020 mktemp - -rwxr-xr-x 1 root root 34408 Jul 28 07:09 more - -rwsr-xr-x 1 root root 34400 Jul 28 07:09 mount - -rwxr-xr-x 1 root root 9824 Jul 28 07:09 mountpoint - -rwxr-xr-x 1 root root 88524 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 26652 Sep 22 2020 pwd - lrwxrwxrwx 1 root root 4 Aug 4 08:25 rbash -> bash - -rwxr-xr-x 1 root root 30740 Sep 22 2020 readlink - -rwxr-xr-x 1 root root 43104 Sep 22 2020 rm - -rwxr-xr-x 1 root root 30732 Sep 22 2020 rmdir - -rwxr-xr-x 1 root root 14144 Sep 27 2020 run-parts - -rwxr-xr-x 1 root root 76012 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Aug 13 21:35 sh -> dash - -rwxr-xr-x 1 root root 22532 Sep 22 2020 sleep - -rwxr-xr-x 1 root root 55360 Sep 22 2020 stty - -rwsr-xr-x 1 root root 46704 Jul 28 07:09 su - -rwxr-xr-x 1 root root 22532 Sep 22 2020 sync - -rwxr-xr-x 1 root root 340872 Feb 16 21:55 tar - -rwxr-xr-x 1 root root 9808 Sep 27 2020 tempfile - -rwxr-xr-x 1 root root 67696 Sep 22 2020 touch - -rwxr-xr-x 1 root root 22496 Sep 22 2020 true - -rwxr-xr-x 1 root root 9636 Feb 26 04:12 ulockmgr_server - -rwsr-xr-x 1 root root 22108 Jul 28 07:09 umount - -rwxr-xr-x 1 root root 22520 Sep 22 2020 uname - -rwxr-xr-x 2 root root 2346 Mar 2 11:30 uncompress - -rwxr-xr-x 1 root root 96764 Sep 22 2020 vdir - -rwxr-xr-x 1 root root 38512 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/11131/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 816764 Aug 5 10:25 bash + -rwxr-xr-x 3 root root 26052 Jul 21 2020 bunzip2 + -rwxr-xr-x 3 root root 26052 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 26052 Jul 21 2020 bzip2 + -rwxr-xr-x 1 root root 9636 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 26668 Sep 23 2020 cat + -rwxr-xr-x 1 root root 43104 Sep 23 2020 chgrp + -rwxr-xr-x 1 root root 38984 Sep 23 2020 chmod + -rwxr-xr-x 1 root root 43112 Sep 23 2020 chown + -rwxr-xr-x 1 root root 92616 Sep 23 2020 cp + -rwxr-xr-x 1 root root 75524 Dec 11 2020 dash + -rwxr-xr-x 1 root root 75880 Sep 23 2020 date + -rwxr-xr-x 1 root root 55436 Sep 23 2020 dd + -rwxr-xr-x 1 root root 59912 Sep 23 2020 df + -rwxr-xr-x 1 root root 96764 Sep 23 2020 dir + -rwxr-xr-x 1 root root 55012 Jul 29 09:09 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 22508 Sep 23 2020 echo + -rwxr-xr-x 1 root root 28 Nov 10 2020 egrep + -rwxr-xr-x 1 root root 22496 Sep 23 2020 false + -rwxr-xr-x 1 root root 28 Nov 10 2020 fgrep + -rwxr-xr-x 1 root root 47492 Jul 29 09:09 findmnt + -rwsr-xr-x 1 root root 26076 Feb 27 06:12 fusermount + -rwxr-xr-x 1 root root 124508 Nov 10 2020 grep + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 gunzip + -rwxr-xr-x 1 root root 6376 Mar 3 13:30 gzexe + -rwxr-xr-x 1 root root 64212 Mar 3 13:30 gzip + -rwxr-xr-x 1 root root 13784 Nov 8 2019 hostname + -rwxr-xr-x 1 root root 43180 Sep 23 2020 ln + -rwxr-xr-x 1 root root 35068 Feb 8 2020 login + -rwxr-xr-x 1 root root 96764 Sep 23 2020 ls + -rwxr-xr-x 1 root root 99940 Jul 29 09:09 lsblk + -rwxr-xr-x 1 root root 51408 Sep 23 2020 mkdir + -rwxr-xr-x 1 root root 43184 Sep 23 2020 mknod + -rwxr-xr-x 1 root root 30780 Sep 23 2020 mktemp + -rwxr-xr-x 1 root root 34408 Jul 29 09:09 more + -rwsr-xr-x 1 root root 34400 Jul 29 09:09 mount + -rwxr-xr-x 1 root root 9824 Jul 29 09:09 mountpoint + -rwxr-xr-x 1 root root 88524 Sep 23 2020 mv + lrwxrwxrwx 1 root root 8 Nov 8 2019 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 19 05:38 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 26652 Sep 23 2020 pwd + lrwxrwxrwx 1 root root 4 Aug 5 10:25 rbash -> bash + -rwxr-xr-x 1 root root 30740 Sep 23 2020 readlink + -rwxr-xr-x 1 root root 43104 Sep 23 2020 rm + -rwxr-xr-x 1 root root 30732 Sep 23 2020 rmdir + -rwxr-xr-x 1 root root 14144 Sep 28 2020 run-parts + -rwxr-xr-x 1 root root 76012 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Aug 15 22:33 sh -> bash + lrwxrwxrwx 1 root root 4 Aug 11 23:27 sh.distrib -> dash + -rwxr-xr-x 1 root root 22532 Sep 23 2020 sleep + -rwxr-xr-x 1 root root 55360 Sep 23 2020 stty + -rwsr-xr-x 1 root root 46704 Jul 29 09:09 su + -rwxr-xr-x 1 root root 22532 Sep 23 2020 sync + -rwxr-xr-x 1 root root 340872 Feb 17 23:55 tar + -rwxr-xr-x 1 root root 9808 Sep 28 2020 tempfile + -rwxr-xr-x 1 root root 67696 Sep 23 2020 touch + -rwxr-xr-x 1 root root 22496 Sep 23 2020 true + -rwxr-xr-x 1 root root 9636 Feb 27 06:12 ulockmgr_server + -rwsr-xr-x 1 root root 22108 Jul 29 09:09 umount + -rwxr-xr-x 1 root root 22520 Sep 23 2020 uname + -rwxr-xr-x 2 root root 2346 Mar 3 13:30 uncompress + -rwxr-xr-x 1 root root 96764 Sep 23 2020 vdir + -rwxr-xr-x 1 root root 38512 Jul 29 09:09 wdctl + lrwxrwxrwx 1 root root 8 Nov 8 2019 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Mar 3 13:30 zcat + -rwxr-xr-x 1 root root 1678 Mar 3 13:30 zcmp + -rwxr-xr-x 1 root root 5880 Mar 3 13:30 zdiff + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zegrep + -rwxr-xr-x 1 root root 29 Mar 3 13:30 zfgrep + -rwxr-xr-x 1 root root 2081 Mar 3 13:30 zforce + -rwxr-xr-x 1 root root 7585 Mar 3 13:30 zgrep + -rwxr-xr-x 1 root root 2206 Mar 3 13:30 zless + -rwxr-xr-x 1 root root 1842 Mar 3 13:30 zmore + -rwxr-xr-x 1 root root 4553 Mar 3 13:30 znew +I: user script /srv/workspace/pbuilder/31980/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -239,7 +273,7 @@ Get: 40 http://deb.debian.org/debian bullseye/main armhf golang-github-kr-pretty-dev all 0.2.1+git20200831.59b4212-1 [14.6 kB] Get: 41 http://deb.debian.org/debian bullseye/main armhf golang-gopkg-check.v1-dev all 0.0+git20200902.038fdea-1 [32.1 kB] Get: 42 http://deb.debian.org/debian bullseye/main armhf golang-gopkg-errgo.v2-dev all 2.1.0-2 [8980 B] -Fetched 74.8 MB in 14s (5332 kB/s) +Fetched 74.8 MB in 9s (8131 kB/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 ... 19398 files and directories currently installed.) @@ -422,8 +456,45 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +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 armhf libnumber-compare-perl all 0.03-1.1 [6956 B] +Get:2 http://deb.debian.org/debian bullseye/main armhf libtext-glob-perl all 0.11-1 [8888 B] +Get:3 http://deb.debian.org/debian bullseye/main armhf libfile-find-rule-perl all 0.34-1 [30.6 kB] +Get:4 http://deb.debian.org/debian bullseye/main armhf usrmerge all 25 [13.0 kB] +debconf: delaying package configuration, since apt-utils is not installed +Fetched 59.5 kB in 1s (94.2 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 ... 32008 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/golang-github-rogpeppe-go-internal-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 > ../golang-github-rogpeppe-go-internal_1.6.2-1_source.changes +hostname: Name or service not known +I: Running cd /build/golang-github-rogpeppe-go-internal-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 > ../golang-github-rogpeppe-go-internal_1.6.2-1_source.changes dpkg-buildpackage: info: source package golang-github-rogpeppe-go-internal dpkg-buildpackage: info: source version 1.6.2-1 dpkg-buildpackage: info: source distribution unstable @@ -441,65 +512,82 @@ dh_autoreconf -O--buildsystem=golang dh_auto_configure -O--buildsystem=golang dh_auto_build -O--buildsystem=golang - cd obj-arm-linux-gnueabihf && go install -trimpath -v -p 3 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/registry github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/internal/textutil github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/txtar + cd obj-arm-linux-gnueabihf && go install -trimpath -v -p 4 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/registry github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/internal/textutil github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/txtar +internal/race +internal/unsafeheader internal/cpu runtime/internal/sys -internal/unsafeheader -internal/race -runtime/internal/math sync/atomic unicode -internal/bytealg -runtime/internal/atomic +runtime/internal/math unicode/utf8 -runtime math/bits +internal/bytealg +runtime/internal/atomic math internal/testlog encoding unicode/utf16 github.com/rogpeppe/go-internal/semver +runtime internal/nettrace runtime/cgo container/list crypto/internal/subtle crypto/subtle vendor/golang.org/x/crypto/cryptobyte/asn1 -vendor/golang.org/x/crypto/internal/subtle internal/goversion +vendor/golang.org/x/crypto/internal/subtle github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/registry github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll internal/reflectlite +gopkg.in/errgo.v2/errors sync +internal/singleflight math/rand github.com/rogpeppe/go-internal/par errors sort +internal/oserror io strconv +syscall +vendor/golang.org/x/net/dns/dnsmessage bytes hash -internal/oserror -syscall crypto reflect +strings +hash/crc32 +crypto/internal/randutil +crypto/hmac +bufio internal/syscall/unix time -encoding/binary -internal/fmtsort -internal/poll -crypto/sha256 internal/syscall/execenv -strings +path +crypto/rc4 +vendor/golang.org/x/crypto/hkdf +vendor/golang.org/x/text/transform +regexp/syntax +context +internal/poll +regexp os -bufio -fmt +internal/fmtsort +encoding/binary +github.com/rogpeppe/go-internal/fmtsort path/filepath -io/ioutil -hash/crc32 -path +fmt +net +crypto/sha256 encoding/base64 +io/ioutil +crypto/cipher +crypto/sha512 +crypto/ed25519/internal/edwards25519 +crypto/aes encoding/hex flag github.com/rogpeppe/go-internal/cache @@ -507,113 +595,96 @@ encoding/json github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/txtar -archive/zip log -context -vendor/golang.org/x/net/dns/dnsmessage -internal/singleflight +archive/zip compress/gzip -crypto/cipher math/big -crypto/aes crypto/des -net -crypto/internal/randutil -crypto/sha512 -crypto/ed25519/internal/edwards25519 -crypto/hmac -crypto/rand -crypto/elliptic -encoding/asn1 -crypto/ed25519 crypto/md5 -vendor/golang.org/x/crypto/cryptobyte -crypto/rc4 -crypto/rsa -crypto/ecdsa crypto/sha1 -crypto/dsa -crypto/x509/pkix encoding/pem net/url vendor/golang.org/x/crypto/chacha20 vendor/golang.org/x/crypto/poly1305 vendor/golang.org/x/crypto/curve25519 vendor/golang.org/x/crypto/chacha20poly1305 -vendor/golang.org/x/crypto/hkdf -vendor/golang.org/x/text/transform vendor/golang.org/x/text/unicode/bidi vendor/golang.org/x/text/unicode/norm +crypto/rand +crypto/elliptic +encoding/asn1 +crypto/ed25519 +crypto/rsa +vendor/golang.org/x/crypto/cryptobyte +crypto/dsa +crypto/x509/pkix vendor/golang.org/x/text/secure/bidirule +vendor/golang.org/x/net/idna vendor/golang.org/x/net/http2/hpack mime -vendor/golang.org/x/net/idna -crypto/x509 -net/textproto +crypto/ecdsa mime/quotedprintable -vendor/golang.org/x/net/http/httpguts -vendor/golang.org/x/net/http/httpproxy -mime/multipart net/http/internal -regexp/syntax -crypto/tls github.com/rogpeppe/go-internal/imports os/exec -regexp -github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/textutil runtime/debug runtime/trace -gopkg.in/errgo.v2/errors -testing gopkg.in/errgo.v2/fmt/errors +crypto/x509 +net/textproto +vendor/golang.org/x/net/http/httpproxy +github.com/rogpeppe/go-internal/internal/os/execpath +testing go/token +vendor/golang.org/x/net/http/httpguts go/scanner +mime/multipart go/ast -github.com/rogpeppe/go-internal/testenv -net/http/httptrace -net/http internal/lazyregexp text/template/parse +github.com/rogpeppe/go-internal/testenv +crypto/tls github.com/rogpeppe/go-internal/testscript -text/template go/parser -go/doc +text/template internal/execabs internal/goroot github.com/rogpeppe/go-internal/cmd/txtar-addmod -go/build -github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/cmd/txtar-c +go/doc github.com/rogpeppe/go-internal/cmd/txtar-x -github.com/rogpeppe/go-internal/goproxytest -github.com/rogpeppe/go-internal/cmd/testscript -github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/dirhash -github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/lockedfile +go/build github.com/rogpeppe/go-internal/modfile +net/http/httptrace +net/http github.com/rogpeppe/go-internal/renameio +github.com/rogpeppe/go-internal/gotooltest +github.com/rogpeppe/go-internal/goproxytest +github.com/rogpeppe/go-internal/cmd/txtar-goproxy +github.com/rogpeppe/go-internal/cmd/testscript debian/rules override_dh_auto_test make[1]: Entering directory '/build/golang-github-rogpeppe-go-internal-1.6.2' GOPROXY="" dh_auto_test - cd obj-arm-linux-gnueabihf && go test -vet=off -v -p 3 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/registry github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/internal/textutil github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/txtar + cd obj-arm-linux-gnueabihf && go test -vet=off -v -p 4 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/registry github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/internal/textutil github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/txtar === RUN TestBasic ---- PASS: TestBasic (0.08s) +--- PASS: TestBasic (0.36s) === RUN TestGrowth ---- PASS: TestGrowth (6.16s) +--- PASS: TestGrowth (23.32s) === RUN TestVerifyPanic cache_test.go:139: go: internal cache error: cache verify failed: id=0100000000000000000000000000000000000000000000000000000000000000 changed:<<< >>> old: cb8379ac2098aa165029e3938a51da0bcecfc008fd6795f401178647f96c5b34 3 new: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad 3 ---- PASS: TestVerifyPanic (0.18s) +--- PASS: TestVerifyPanic (0.43s) === RUN TestCacheLog ---- PASS: TestCacheLog (0.07s) +--- PASS: TestCacheLog (0.62s) === RUN TestCacheTrim ---- PASS: TestCacheTrim (0.34s) +--- PASS: TestCacheTrim (0.76s) === RUN TestDefaultDir --- PASS: TestDefaultDir (0.00s) === RUN TestHash @@ -621,7 +692,7 @@ === RUN TestHashFile --- PASS: TestHashFile (0.00s) PASS -ok github.com/rogpeppe/go-internal/cache 6.885s +ok github.com/rogpeppe/go-internal/cache 25.543s === RUN TestScripts === RUN TestScripts/env_var_no_go === PAUSE TestScripts/env_var_no_go @@ -642,13 +713,13 @@ === RUN TestScripts/work === PAUSE TestScripts/work === CONT TestScripts/env_var_no_go -=== CONT TestScripts/noproxy +=== CONT TestScripts/error === CONT TestScripts/help -=== CONT TestScripts/nogo +=== CONT TestScripts/noproxy === CONT TestScripts/help testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -666,7 +737,7 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # Simply sanity check on help output (0.019s) + # Simply sanity check on help output (0.109s) > ! testscript -help [stderr] The testscript command runs github.com/rogpeppe/go-internal/testscript scripts @@ -784,58 +855,11 @@ > stderr 'Examples' PASS -=== CONT TestScripts/work -=== CONT TestScripts/nogo - testscript.go:382: - WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - HOME=/no-home - TMPDIR=$WORK/tmp - devnull=/dev/null - /=/ - :=: - exe= - GOPATH=$WORK/gopath - CCACHE_DISABLE=1 - GOARCH=arm - GOOS=linux - GOROOT=/usr/lib/go-1.15 - GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-arm-linux-gnueabihf/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.15 - GOINTERNALMODPATH=. - GONOSUMDB=* - - # should support skip (0.167s) - > unquote file.txt - > env PATH= - > ! testscript -v file.txt - [stdout] - - WORK=$WORK - PATH= - HOME=/no-home - TMPDIR=$WORK/tmp - devnull=/dev/null - /=/ - :=: - exe= - - > go env - FAIL: $WORK/tmp/testscript283301423/0/script.txt:1: unknown command "go" - [stderr] - error running file.txt in $WORK/tmp/testscript283301423/0 - - [exit status 1] - > stdout 'unknown command "go"' - > stderr 'error running file.txt in' - PASS - -=== CONT TestScripts/skip +=== CONT TestScripts/env_var_with_go === CONT TestScripts/env_var_no_go testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -855,19 +879,19 @@ # Test passing environment variables to scripts with no go command on PATH # - # This is the counterpart to env_var_with_go.txt (0.142s) + # This is the counterpart to env_var_with_go.txt (0.028s) > unquote noproxy.txt > unquote withproxy.txt > dropgofrompath > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= - # no GOPROXY, no pass-through, no proxy (0.042s) + # no GOPROXY, no pass-through, no proxy (0.098s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/sbin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -886,19 +910,19 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.023s) + # no GOPROXY, no pass-through, with proxy (0.196s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/sbin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= - GOPROXY=http://127.0.0.1:44189/mod + GOPROXY=http://127.0.0.1:36739/mod GONOSUMDB=* > env BANANA @@ -906,18 +930,18 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:44189/mod + GOPROXY=http://127.0.0.1:36739/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.014s) + # no GOPROXY, with pass-through, no proxy (0.182s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/sbin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -939,12 +963,12 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.018s) + # no GOPROXY, with pass-through, with proxy (0.177s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/sbin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -968,12 +992,12 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.017s) + # with GOPROXY, no pass-through, no proxy (0.189s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/sbin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -992,19 +1016,19 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # with GOPROXY, no pass-through, with proxy (0.016s) + # with GOPROXY, no pass-through, with proxy (0.097s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/sbin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null /=/ :=: exe= - GOPROXY=http://127.0.0.1:42093/mod + GOPROXY=http://127.0.0.1:36749/mod GONOSUMDB=* > env BANANA @@ -1012,18 +1036,18 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:42093/mod + GOPROXY=http://127.0.0.1:36749/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.015s) + # with GOPROXY, with pass-through, no proxy (0.244s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/sbin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1045,12 +1069,12 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, with pass-through, with proxy (0.017s) + # with GOPROXY, with pass-through, with proxy (0.164s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/sbin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1075,11 +1099,57 @@ > ! stderr .+ PASS -=== CONT TestScripts/simple +=== CONT TestScripts/nogo + testscript.go:382: + WORK=$WORK + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + HOME=/no-home + TMPDIR=$WORK/tmp + devnull=/dev/null + /=/ + :=: + exe= + GOPATH=$WORK/gopath + CCACHE_DISABLE=1 + GOARCH=arm + GOOS=linux + GOROOT=/usr/lib/go-1.15 + GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-arm-linux-gnueabihf/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.15 + GOINTERNALMODPATH=. + GONOSUMDB=* + + # should support skip (0.087s) + > unquote file.txt + > env PATH= + > ! testscript -v file.txt + [stdout] + + WORK=$WORK + PATH= + HOME=/no-home + TMPDIR=$WORK/tmp + devnull=/dev/null + /=/ + :=: + exe= + + > go env + FAIL: $WORK/tmp/testscript478527238/0/script.txt:1: unknown command "go" + [stderr] + error running file.txt in $WORK/tmp/testscript478527238/0 + + [exit status 1] + > stdout 'unknown command "go"' + > stderr 'error running file.txt in' + PASS + === CONT TestScripts/work +=== CONT TestScripts/error testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1097,13 +1167,15 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # should support skip (0.392s) + # should support skip (0.001s) > unquote file.txt - > testscript -v -work file.txt + # stdin (1.100s) + > stdin file.txt + > ! testscript -v [stdout] WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1119,18 +1191,50 @@ GOPROXY=https://proxy.golang.org,direct goversion=1.15 - > exec true - PASS + > exec false + [exit status 1] + FAIL: $WORK/tmp/testscript317452776/0/script.txt:1: unexpected command failure [stderr] - temporary work directory: $WORK/tmp/testscript056424609 - > stderr '\Qtemporary work directory: '$WORK'\E[/\\]tmp[/\\]' + error running in $WORK/tmp/testscript317452776/0 + + [exit status 1] + > stderr 'error running in' + # file-based (0.789s) + > ! testscript -v file.txt + [stdout] + + WORK=$WORK + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + HOME=/no-home + TMPDIR=$WORK/tmp + devnull=/dev/null + /=/ + :=: + exe= + GOPATH=$WORK/gopath + CCACHE_DISABLE=1 + GOARCH=arm + GOOS=linux + GOROOT=/usr/lib/go-1.15 + GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-arm-linux-gnueabihf/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.15 + + > exec false + [exit status 1] + FAIL: $WORK/tmp/testscript549452633/0/script.txt:1: unexpected command failure + [stderr] + error running file.txt in $WORK/tmp/testscript549452633/0 + + [exit status 1] + > stderr 'error running file.txt in' PASS -=== CONT TestScripts/error === CONT TestScripts/skip +=== CONT TestScripts/work testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1148,13 +1252,13 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # should support skip (0.235s) + # should support skip (0.779s) > unquote file.txt - > testscript -v file.txt + > testscript -v -work file.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1170,20 +1274,18 @@ GOPROXY=https://proxy.golang.org,direct goversion=1.15 - > go version - [stdout] - go version go1.15.9 linux/arm - - > skip - > stdout 'go version' - > ! stderr .+ + > exec true + PASS + [stderr] + temporary work directory: $WORK/tmp/testscript280796770 + > stderr '\Qtemporary work directory: '$WORK'\E[/\\]tmp[/\\]' PASS -=== CONT TestScripts/env_var_with_go +=== CONT TestScripts/simple === CONT TestScripts/noproxy testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1202,14 +1304,14 @@ GONOSUMDB=* # With no .gomodproxy supporting files, we use the GOPROXY from - # the environment. (0.639s) + # the environment. (2.441s) > env GOPROXY=0.1.2.3 > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1261,17 +1363,17 @@ CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" - GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/tmp/go-build600343444=/tmp/go-build -gno-record-gcc-switches" + GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/tmp/go-build534693003=/tmp/go-build -gno-record-gcc-switches" > [!windows] stdout '^GOPROXY="0.1.2.3"$' > [windows] stdout '^set GOPROXY=0.1.2.3$' PASS PASS -=== CONT TestScripts/error +=== CONT TestScripts/skip testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1289,15 +1391,13 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # should support skip (0.054s) + # should support skip (0.683s) > unquote file.txt - # stdin (0.220s) - > stdin file.txt - > ! testscript -v + > testscript -v file.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1313,20 +1413,19 @@ GOPROXY=https://proxy.golang.org,direct goversion=1.15 - > exec false - [exit status 1] - FAIL: $WORK/tmp/testscript262795723/0/script.txt:1: unexpected command failure - [stderr] - error running in $WORK/tmp/testscript262795723/0 - - [exit status 1] - > stderr 'error running in' - # file-based (0.151s) - > ! testscript -v file.txt + > go version [stdout] + go version go1.15.9 linux/arm + + > skip + > stdout 'go version' + > ! stderr .+ + PASS +=== CONT TestScripts/simple + testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1341,21 +1440,58 @@ GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-arm-linux-gnueabihf/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.15 + GOINTERNALMODPATH=. + GONOSUMDB=* + + # With .gomodproxy supporting files, any GOPROXY from the + # environment should be overridden by the test proxy. (0.674s) + > env GOPROXY=0.1.2.3 + > unquote file.txt + > testscript -v file.txt + [stdout] + + WORK=$WORK + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + HOME=/no-home + TMPDIR=$WORK/tmp + devnull=/dev/null + /=/ + :=: + exe= + GOPATH=$WORK/gopath + CCACHE_DISABLE=1 + GOARCH=arm + GOOS=linux + GOROOT=/usr/lib/go-1.15 + GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-arm-linux-gnueabihf/go-build + GOPROXY=http://127.0.0.1:43747/mod + goversion=1.15 + GONOSUMDB=* + + > go list -m + [stdout] + example.com/mod + + > stdout 'example.com/mod' + > go list fruit.com/... + [stdout] + fruit.com/coretest + fruit.com/fruit - > exec false - [exit status 1] - FAIL: $WORK/tmp/testscript988201755/0/script.txt:1: unexpected command failure [stderr] - error running file.txt in $WORK/tmp/testscript988201755/0 + go: downloading fruit.com v1.0.0 - [exit status 1] - > stderr 'error running file.txt in' + > stdout 'fruit.com/fruit' + > stdout 'fruit.com/coretest' + PASS + > stdout 'example.com/mod' + > ! stderr .+ PASS === CONT TestScripts/env_var_with_go testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1379,15 +1515,15 @@ # the string literal $WORK because testscript rewrites the actual directory # to $WORK. Hence we don't want to expand this script's $WORK in such a comparison. # - # This is the counterpart to env_var_no_go.txt (0.001s) + # This is the counterpart to env_var_no_go.txt (0.010s) > unquote noproxy.txt > unquote withproxy.txt - # Baseline (0.131s) + # Baseline (1.131s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1418,12 +1554,12 @@ > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= - # no GOPROXY, no pass-through, no proxy (0.113s) + # no GOPROXY, no pass-through, no proxy (0.753s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1451,12 +1587,12 @@ > [!go1.13] stdout ^GOPROXY=$ > [go1.13] stdout ^GOPROXY=https://proxy.golang.org,direct$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.100s) + # no GOPROXY, no pass-through, with proxy (0.605s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1469,7 +1605,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-arm-linux-gnueabihf/go-build - GOPROXY=http://127.0.0.1:43195/mod + GOPROXY=http://127.0.0.1:38253/mod goversion=1.15 GONOSUMDB=* @@ -1478,18 +1614,18 @@ > env GOPATH GOPATH=$WORK/gopath > env GOPROXY - GOPROXY=http://127.0.0.1:43195/mod + GOPROXY=http://127.0.0.1:38253/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.166s) + # no GOPROXY, with pass-through, no proxy (0.396s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1517,12 +1653,12 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.096s) + # no GOPROXY, with pass-through, with proxy (0.268s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1552,12 +1688,12 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.102s) + # with GOPROXY, no pass-through, no proxy (0.262s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1584,12 +1720,12 @@ > stdout '^GOPATH=\$WORK[/\\]gopath'$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, no pass-through, with proxy (0.194s) + # with GOPROXY, no pass-through, with proxy (0.264s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1602,7 +1738,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-arm-linux-gnueabihf/go-build - GOPROXY=http://127.0.0.1:39091/mod + GOPROXY=http://127.0.0.1:37213/mod goversion=1.15 GONOSUMDB=* @@ -1611,18 +1747,18 @@ > env GOPATH GOPATH=$WORK/gopath > env GOPROXY - GOPROXY=http://127.0.0.1:39091/mod + GOPROXY=http://127.0.0.1:37213/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.099s) + # with GOPROXY, with pass-through, no proxy (0.247s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1650,12 +1786,12 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, with pass-through, with proxy (0.147s) + # with GOPROXY, with pass-through, with proxy (0.268s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1686,84 +1822,18 @@ > ! stderr .+ PASS -=== CONT TestScripts/simple - testscript.go:382: - WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - HOME=/no-home - TMPDIR=$WORK/tmp - devnull=/dev/null - /=/ - :=: - exe= - GOPATH=$WORK/gopath - CCACHE_DISABLE=1 - GOARCH=arm - GOOS=linux - GOROOT=/usr/lib/go-1.15 - GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-arm-linux-gnueabihf/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.15 - GOINTERNALMODPATH=. - GONOSUMDB=* - - # With .gomodproxy supporting files, any GOPROXY from the - # environment should be overridden by the test proxy. (1.633s) - > env GOPROXY=0.1.2.3 - > unquote file.txt - > testscript -v file.txt - [stdout] - - WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - HOME=/no-home - TMPDIR=$WORK/tmp - devnull=/dev/null - /=/ - :=: - exe= - GOPATH=$WORK/gopath - CCACHE_DISABLE=1 - GOARCH=arm - GOOS=linux - GOROOT=/usr/lib/go-1.15 - GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-arm-linux-gnueabihf/go-build - GOPROXY=http://127.0.0.1:36185/mod - goversion=1.15 - GONOSUMDB=* - - > go list -m - [stdout] - example.com/mod - - > stdout 'example.com/mod' - > go list fruit.com/... - [stdout] - fruit.com/coretest - fruit.com/fruit - - [stderr] - go: downloading fruit.com v1.0.0 - - > stdout 'fruit.com/fruit' - > stdout 'fruit.com/coretest' - PASS - > stdout 'example.com/mod' - > ! stderr .+ - PASS - ---- PASS: TestScripts (0.12s) - --- PASS: TestScripts/help (0.02s) - --- PASS: TestScripts/nogo (0.33s) - --- PASS: TestScripts/env_var_no_go (0.47s) - --- PASS: TestScripts/work (0.55s) - --- PASS: TestScripts/skip (0.29s) - --- PASS: TestScripts/noproxy (0.81s) - --- PASS: TestScripts/error (0.53s) - --- PASS: TestScripts/env_var_with_go (1.17s) - --- PASS: TestScripts/simple (1.65s) +--- PASS: TestScripts (0.54s) + --- PASS: TestScripts/help (0.13s) + --- PASS: TestScripts/env_var_no_go (1.43s) + --- PASS: TestScripts/nogo (0.11s) + --- PASS: TestScripts/error (1.91s) + --- PASS: TestScripts/work (0.80s) + --- PASS: TestScripts/noproxy (2.47s) + --- PASS: TestScripts/skip (0.69s) + --- PASS: TestScripts/simple (0.69s) + --- PASS: TestScripts/env_var_with_go (4.23s) PASS -ok github.com/rogpeppe/go-internal/cmd/testscript 2.257s +ok github.com/rogpeppe/go-internal/cmd/testscript 5.004s === RUN TestScripts === RUN TestScripts/encode === PAUSE TestScripts/encode @@ -1779,7 +1849,7 @@ === CONT TestScripts/encode testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1792,7 +1862,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-arm-linux-gnueabihf/go-build - GOPROXY=http://127.0.0.1:42031/mod + GOPROXY=http://127.0.0.1:42701/mod goversion=1.15 GONOSUMDB=* @@ -1806,7 +1876,7 @@ === CONT TestScripts/to_stdout testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1819,7 +1889,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-arm-linux-gnueabihf/go-build - GOPROXY=http://127.0.0.1:42031/mod + GOPROXY=http://127.0.0.1:42701/mod goversion=1.15 GONOSUMDB=* @@ -1847,7 +1917,7 @@ === CONT TestScripts/txtar-addmod-self testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1860,7 +1930,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-arm-linux-gnueabihf/go-build - GOPROXY=http://127.0.0.1:42031/mod + GOPROXY=http://127.0.0.1:42701/mod goversion=1.15 GONOSUMDB=* @@ -1874,12 +1944,12 @@ > grep '-- foobar --' $WORK/out/github.com_gobin-testrepos_simple-main_v1.0.0.txt PASS ---- PASS: TestScripts (0.08s) - --- PASS: TestScripts/encode (1.77s) - --- PASS: TestScripts/to_stdout (1.94s) - --- PASS: TestScripts/txtar-addmod-self (2.05s) +--- PASS: TestScripts (0.75s) + --- PASS: TestScripts/encode (1.01s) + --- PASS: TestScripts/to_stdout (1.49s) + --- PASS: TestScripts/txtar-addmod-self (2.20s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 2.158s +ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 3.034s === RUN TestScripts === RUN TestScripts/all === PAUSE TestScripts/all @@ -1891,12 +1961,12 @@ === PAUSE TestScripts/txtar-savedir-self === CONT TestScripts/all === CONT TestScripts/quote -=== CONT TestScripts/needquote === CONT TestScripts/txtar-savedir-self === CONT TestScripts/needquote +=== CONT TestScripts/quote testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1906,20 +1976,51 @@ > unquote blah/withsep > unquote expect + > txtar-c -quote blah + [stdout] + unquote withsep + -- withsep -- + >-- separator -- + >foo + > ! stderr .+ + > cmp stdout expect + PASS + +=== CONT TestScripts/txtar-savedir-self + testscript.go:382: + WORK=$WORK + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + HOME=/no-home + TMPDIR=$WORK/tmp + devnull=/dev/null + /=/ + :=: + exe= + + > unquote expect > txtar-c blah [stdout] - -- nosep -- - bar - [stderr] - txtar-c: blah/withsep: ignoring file with txtar marker in - > stderr 'txtar-c: blah.withsep: ignoring file with txtar marker in' + -- go.mod -- + module example.com/blah + + -- main.go -- + package main + + import "fmt" + + func main() { + fmt.Println("Hello, world!") + } + -- subdir/x -- + x contents + > ! stderr .+ > cmp stdout expect PASS -=== CONT TestScripts/quote +=== CONT TestScripts/needquote testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1929,20 +2030,20 @@ > unquote blah/withsep > unquote expect - > txtar-c -quote blah + > txtar-c blah [stdout] - unquote withsep - -- withsep -- - >-- separator -- - >foo - > ! stderr .+ + -- nosep -- + bar + [stderr] + txtar-c: blah/withsep: ignoring file with txtar marker in + > stderr 'txtar-c: blah.withsep: ignoring file with txtar marker in' > cmp stdout expect PASS === CONT TestScripts/all testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -1952,7 +2053,7 @@ > unquote expect-all > unquote expect-no-all - # Without the -a flag, it should ignore . files. (0.010s) + # Without the -a flag, it should ignore . files. (0.053s) > txtar-c blah [stdout] -- go.mod -- @@ -1968,7 +2069,7 @@ } > ! stderr .+ > cmp stdout expect-no-all - # With the -a flag, it should include them. (0.019s) + # With the -a flag, it should include them. (0.032s) > txtar-c -a blah [stdout] -- .foo/foo -- @@ -1990,44 +2091,13 @@ > cmp stdout expect-all PASS -=== CONT TestScripts/txtar-savedir-self - testscript.go:382: - WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - HOME=/no-home - TMPDIR=$WORK/tmp - devnull=/dev/null - /=/ - :=: - exe= - - > unquote expect - > txtar-c blah - [stdout] - -- go.mod -- - module example.com/blah - - -- main.go -- - package main - - import "fmt" - - func main() { - fmt.Println("Hello, world!") - } - -- subdir/x -- - x contents - > ! stderr .+ - > cmp stdout expect - PASS - ---- PASS: TestScripts (0.03s) - --- PASS: TestScripts/needquote (0.05s) - --- PASS: TestScripts/all (0.05s) +--- PASS: TestScripts (0.00s) --- PASS: TestScripts/quote (0.05s) - --- PASS: TestScripts/txtar-savedir-self (0.08s) + --- PASS: TestScripts/txtar-savedir-self (0.06s) + --- PASS: TestScripts/needquote (0.06s) + --- PASS: TestScripts/all (0.12s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.121s +ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.169s ? github.com/rogpeppe/go-internal/cmd/txtar-goproxy [no test files] === RUN TestScripts === RUN TestScripts/extract-dir @@ -2039,13 +2109,12 @@ === RUN TestScripts/extract === PAUSE TestScripts/extract === CONT TestScripts/extract-dir -=== CONT TestScripts/extract === CONT TestScripts/extract-stdin === CONT TestScripts/extract-out-of-bounds -=== CONT TestScripts/extract-dir +=== CONT TestScripts/extract testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2054,15 +2123,15 @@ exe= > unquote file.txtar - > txtar-x -C x/y file.txtar - > cmp x/y/foo expect/foo - > cmp x/y/a/b/bar expect/a/b/bar + > txtar-x file.txtar + > cmp foo expect/foo + > cmp a/b/bar expect/a/b/bar PASS -=== CONT TestScripts/extract-stdin +=== CONT TestScripts/extract-dir testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2071,16 +2140,15 @@ exe= > unquote file.txtar - > stdin file.txtar - > txtar-x - > cmp foo expect/foo - > cmp a/b/bar expect/a/b/bar + > txtar-x -C x/y file.txtar + > cmp x/y/foo expect/foo + > cmp x/y/a/b/bar expect/a/b/bar PASS -=== CONT TestScripts/extract +=== CONT TestScripts/extract-stdin testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2089,7 +2157,8 @@ exe= > unquote file.txtar - > txtar-x file.txtar + > stdin file.txtar + > txtar-x > cmp foo expect/foo > cmp a/b/bar expect/a/b/bar PASS @@ -2097,7 +2166,7 @@ === CONT TestScripts/extract-out-of-bounds testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2119,12 +2188,12 @@ PASS --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/extract-dir (0.05s) - --- PASS: TestScripts/extract-stdin (0.05s) --- PASS: TestScripts/extract (0.06s) - --- PASS: TestScripts/extract-out-of-bounds (0.07s) + --- PASS: TestScripts/extract-dir (0.07s) + --- PASS: TestScripts/extract-stdin (0.08s) + --- PASS: TestScripts/extract-out-of-bounds (0.09s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.119s +ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.129s === RUN TestHash1 --- PASS: TestHash1 (0.00s) === RUN TestHashDir @@ -2134,7 +2203,7 @@ === RUN TestDirFiles --- PASS: TestDirFiles (0.00s) PASS -ok github.com/rogpeppe/go-internal/dirhash 0.035s +ok github.com/rogpeppe/go-internal/dirhash 0.061s === RUN TestCompare --- PASS: TestCompare (0.00s) === RUN TestOrder @@ -2149,7 +2218,7 @@ === CONT TestScripts/list testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2162,11 +2231,11 @@ GOOS=linux GOROOT=/usr/lib/go-1.15 GOCACHE=/build/golang-github-rogpeppe-go-internal-1.6.2/obj-arm-linux-gnueabihf/go-build - GOPROXY=http://127.0.0.1:44381/mod + GOPROXY=http://127.0.0.1:35601/mod goversion=1.15 GONOSUMDB=* - # prior to go 1.12 you cannot list a module without a requirement (2.637s) + # prior to go 1.12 you cannot list a module without a requirement (0.916s) > [!go1.12] go get fruit.com > go list -m -versions fruit.com [stdout] @@ -2183,17 +2252,17 @@ PASS ---- PASS: TestScripts (0.10s) - --- PASS: TestScripts/list (2.80s) +--- PASS: TestScripts (0.74s) + --- PASS: TestScripts/list (1.01s) PASS -ok github.com/rogpeppe/go-internal/goproxytest 2.920s +ok github.com/rogpeppe/go-internal/goproxytest 1.836s === RUN TestSimple === RUN TestSimple/version === PAUSE TestSimple/version === CONT TestSimple/version testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2218,10 +2287,10 @@ > [go1.12] stdout go1\.12 PASS ---- PASS: TestSimple (0.08s) - --- PASS: TestSimple/version (0.16s) +--- PASS: TestSimple (0.40s) + --- PASS: TestSimple/version (0.27s) PASS -ok github.com/rogpeppe/go-internal/gotooltest 0.254s +ok github.com/rogpeppe/go-internal/gotooltest 0.726s === RUN TestReadImports --- PASS: TestReadImports (0.00s) === RUN TestReadComments @@ -2231,11 +2300,11 @@ === RUN TestReadFailuresIgnored --- PASS: TestReadFailuresIgnored (0.00s) === RUN TestScan ---- PASS: TestScan (0.00s) +--- PASS: TestScan (0.01s) === RUN TestScanStar ---- PASS: TestScanStar (0.19s) +--- PASS: TestScanStar (0.00s) PASS -ok github.com/rogpeppe/go-internal/imports 0.223s +ok github.com/rogpeppe/go-internal/imports 0.044s ? github.com/rogpeppe/go-internal/internal/os/execpath [no test files] ? github.com/rogpeppe/go-internal/internal/syscall/windows [no test files] ? github.com/rogpeppe/go-internal/internal/syscall/windows/registry [no test files] @@ -2243,7 +2312,7 @@ === RUN TestDiff --- PASS: TestDiff (0.00s) PASS -ok github.com/rogpeppe/go-internal/internal/textutil 0.018s +ok github.com/rogpeppe/go-internal/internal/textutil 0.042s === RUN TestMutexExcludes === PAUSE TestMutexExcludes === RUN TestReadWaitsForLock @@ -2251,7 +2320,7 @@ === RUN TestCanLockExistingFile === PAUSE TestCanLockExistingFile === RUN TestSpuriousEDEADLK ---- PASS: TestSpuriousEDEADLK (0.07s) +--- PASS: TestSpuriousEDEADLK (0.04s) === CONT TestMutexExcludes lockedfile_test.go:74: mu := MutexAt(_) lockedfile_test.go:80: unlock, _ := mu.Lock() @@ -2263,14 +2332,15 @@ lockedfile_test.go:96: unlock() lockedfile_test.go:91: unlock2, _ := mu2.Lock() lockedfile_test.go:92: unlock2() ---- PASS: TestMutexExcludes (0.01s) ---- PASS: TestCanLockExistingFile (0.01s) +--- PASS: TestMutexExcludes (0.02s) === CONT TestReadWaitsForLock lockedfile_test.go:145: WriteString("part 2\n") = +--- PASS: TestCanLockExistingFile (0.02s) +=== CONT TestReadWaitsForLock lockedfile_test.go:135: Read(_) = "part 1\npart 2\n" ---- PASS: TestReadWaitsForLock (0.09s) +--- PASS: TestReadWaitsForLock (0.02s) PASS -ok github.com/rogpeppe/go-internal/lockedfile 0.218s +ok github.com/rogpeppe/go-internal/lockedfile 0.103s === RUN TestLockExcludesLock === PAUSE TestLockExcludesLock === RUN TestLockExcludesRLock @@ -2278,38 +2348,40 @@ === RUN TestRLockExcludesOnlyLock === PAUSE TestRLockExcludesOnlyLock === RUN TestLockNotDroppedByExecCommand - filelock_test.go:190: fd 7 = /tmp/TestLockNotDroppedByExecCommand508674286 + filelock_test.go:190: fd 7 = /tmp/TestLockNotDroppedByExecCommand742891489 filelock_test.go:193: Lock(fd 7) = - filelock_test.go:195: fd 8 = os.Open("/tmp/TestLockNotDroppedByExecCommand508674286") + filelock_test.go:195: fd 8 = os.Open("/tmp/TestLockNotDroppedByExecCommand742891489") filelock_test.go:206: Lock(fd 8) is blocked (as expected) filelock_test.go:207: Unlock(fd 7) = asm_arm.s:857: Lock(fd 8) = filelock_test.go:209: Unlock(fd 8) = ---- PASS: TestLockNotDroppedByExecCommand (0.04s) +--- PASS: TestLockNotDroppedByExecCommand (0.03s) === CONT TestLockExcludesLock - filelock_test.go:124: fd 7 = /tmp/TestLockExcludesLock817009525 - filelock_test.go:127: fd 8 = os.Open("/tmp/TestLockExcludesLock817009525") + filelock_test.go:124: fd 7 = /tmp/TestLockExcludesLock104441804 + filelock_test.go:127: fd 8 = os.Open("/tmp/TestLockExcludesLock104441804") filelock_test.go:130: Lock(fd 7) = === CONT TestRLockExcludesOnlyLock - filelock_test.go:156: fd 9 = /tmp/TestRLockExcludesOnlyLock118703184 + filelock_test.go:156: fd 9 = /tmp/TestRLockExcludesOnlyLock285468347 filelock_test.go:158: RLock(fd 9) = - filelock_test.go:160: fd 10 = os.Open("/tmp/TestRLockExcludesOnlyLock118703184") + filelock_test.go:160: fd 10 = os.Open("/tmp/TestRLockExcludesOnlyLock285468347") filelock_test.go:172: RLock(fd 10) = - filelock_test.go:175: fd 11 = os.Open("/tmp/TestRLockExcludesOnlyLock118703184") + filelock_test.go:175: fd 11 = os.Open("/tmp/TestRLockExcludesOnlyLock285468347") === CONT TestLockExcludesRLock - filelock_test.go:140: fd 12 = /tmp/TestLockExcludesRLock590267247 - filelock_test.go:143: fd 13 = os.Open("/tmp/TestLockExcludesRLock590267247") + filelock_test.go:140: fd 12 = /tmp/TestLockExcludesRLock010903262 + filelock_test.go:143: fd 13 = os.Open("/tmp/TestLockExcludesRLock010903262") filelock_test.go:146: Lock(fd 12) = === CONT TestLockExcludesLock filelock_test.go:131: Lock(fd 8) is blocked (as expected) filelock_test.go:132: Unlock(fd 7) = - asm_arm.s:857: Lock(fd 8) = - filelock_test.go:134: Unlock(fd 8) = ---- PASS: TestLockExcludesLock (0.01s) === CONT TestRLockExcludesOnlyLock filelock_test.go:177: Lock(fd 11) is blocked (as expected) filelock_test.go:179: Unlock(fd 10) = filelock_test.go:181: Unlock(fd 9) = +=== CONT TestLockExcludesLock + asm_arm.s:857: Lock(fd 8) = + filelock_test.go:134: Unlock(fd 8) = +--- PASS: TestLockExcludesLock (0.01s) +=== CONT TestRLockExcludesOnlyLock asm_arm.s:857: Lock(fd 11) = filelock_test.go:184: Unlock(fd 11) = --- PASS: TestRLockExcludesOnlyLock (0.01s) @@ -2320,13 +2392,13 @@ filelock_test.go:150: Unlock(fd 13) = --- PASS: TestLockExcludesRLock (0.01s) PASS -ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.110s +ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.072s === RUN TestPrintGolden ---- PASS: TestPrintGolden (0.11s) +--- PASS: TestPrintGolden (0.03s) === RUN TestParseLax --- PASS: TestParseLax (0.00s) === RUN TestPrintParse ---- PASS: TestPrintParse (0.06s) +--- PASS: TestPrintParse (0.05s) === RUN TestModulePath === RUN TestModulePath/module_"github.com/rsc/vgotest" === RUN TestModulePath/module_github.com/rsc/vgotest @@ -2355,7 +2427,7 @@ === RUN TestModulePath/module___ === RUN TestModulePath/module_"__a/b/c__" === RUN TestModulePath/module_"github.com/rsc/vgotest1"_//_with_a_comment ---- PASS: TestModulePath (0.00s) +--- PASS: TestModulePath (0.01s) --- PASS: TestModulePath/module_"github.com/rsc/vgotest" (0.00s) --- PASS: TestModulePath/module_github.com/rsc/vgotest (0.00s) --- PASS: TestModulePath/module__"github.com/rsc/vgotest" (0.00s) @@ -2395,16 +2467,16 @@ === RUN TestAddRequire/#0 === RUN TestAddRequire/#1 === RUN TestAddRequire/#2 ---- PASS: TestAddRequire (0.00s) +--- PASS: TestAddRequire (0.01s) --- PASS: TestAddRequire/#0 (0.00s) --- PASS: TestAddRequire/#1 (0.00s) --- PASS: TestAddRequire/#2 (0.00s) PASS -ok github.com/rogpeppe/go-internal/modfile 0.206s +ok github.com/rogpeppe/go-internal/modfile 0.189s === RUN TestCheck --- PASS: TestCheck (0.00s) === RUN TestCheckPath ---- PASS: TestCheckPath (0.00s) +--- PASS: TestCheckPath (0.01s) === RUN TestSplitPathVersion --- PASS: TestSplitPathVersion (0.00s) === RUN TestEncodePath @@ -2412,15 +2484,15 @@ === RUN TestDecodePath --- PASS: TestDecodePath (0.00s) PASS -ok github.com/rogpeppe/go-internal/module 0.051s +ok github.com/rogpeppe/go-internal/module 0.068s === RUN TestWork ---- PASS: TestWork (0.03s) +--- PASS: TestWork (0.12s) === RUN TestWorkParallel --- PASS: TestWorkParallel (0.00s) === RUN TestCache --- PASS: TestCache (0.00s) PASS -ok github.com/rogpeppe/go-internal/par 0.055s +ok github.com/rogpeppe/go-internal/par 0.152s ? github.com/rogpeppe/go-internal/renameio [no test files] === RUN TestIsValid --- PASS: TestIsValid (0.00s) @@ -2439,7 +2511,7 @@ === RUN TestMax --- PASS: TestMax (0.00s) PASS -ok github.com/rogpeppe/go-internal/semver 0.010s +ok github.com/rogpeppe/go-internal/semver 0.047s ? github.com/rogpeppe/go-internal/testenv [no test files] === RUN TestCRLFInput === RUN TestCRLFInput/_ @@ -2448,7 +2520,7 @@ === CONT TestCRLFInput/_/script testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2459,7 +2531,7 @@ > exists output.txt PASS ---- PASS: TestCRLFInput (0.00s) +--- PASS: TestCRLFInput (0.01s) --- PASS: TestCRLFInput/_ (0.00s) --- PASS: TestCRLFInput/_/script (0.00s) === RUN TestEnv @@ -2513,14 +2585,13 @@ === PAUSE TestScripts/values === RUN TestScripts/wait === PAUSE TestScripts/wait +=== CONT TestScripts/testscript_update_script_expected_not_in_archive === CONT TestScripts/cmpenv -=== CONT TestScripts/wait -=== CONT TestScripts/readfile === CONT TestScripts/testscript_update_script_actual_is_file === CONT TestScripts/cmpenv testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2533,11 +2604,12 @@ > cmpenv file1 file2 PASS -=== CONT TestScripts/nothing -=== CONT TestScripts/readfile +=== CONT TestScripts/stdin +=== CONT TestScripts/testscript_update_script +=== CONT TestScripts/testscript_update_script_actual_is_file testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2546,22 +2618,21 @@ exe= GONOSUMDB=* - > echo stdout stdout - [stdout] - stdout - > testreadfile stdout - > echo stderr stderr - [stderr] - stderr - > testreadfile stderr - > testreadfile x/somefile + > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript-update scripts + testscript: PASS + $WORK/scripts/testscript.txt updated -=== CONT TestScripts/interrupt -=== CONT TestScripts/testscript_update_script_actual_is_file + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== CONT TestScripts/setupfiles +=== CONT TestScripts/testscript_update_script_expected_not_in_archive testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2570,21 +2641,30 @@ exe= GONOSUMDB=* + # Verify that comparing stdout against a file not in the archive does nothing (0.042s) > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript-update scripts + > cp scripts/testscript.txt unchanged + > ! testscript-update scripts testscript: - PASS - $WORK/scripts/testscript.txt updated + > echo stdout right + [stdout] + right + > cp file expect + > cmp stdout expect + [diff -stdout +expect] + -right + +wrong - > cmp scripts/testscript.txt testscript-new.txt + FAIL: $WORK/scripts/testscript.txt:3: stdout and expect differ + + > cmp scripts/testscript.txt unchanged PASS -=== CONT TestScripts/hello -=== CONT TestScripts/nothing +=== CONT TestScripts/setenv +=== CONT TestScripts/setupfiles testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2593,13 +2673,15 @@ exe= GONOSUMDB=* - # Intentionally blank file, used to test that -testwork doesn't remove the work directory (0.000s) + # check that the Setup function saw the unarchived files, + # including the temp directory that's always created. (0.000s) + > setup-filenames a b tmp PASS -=== CONT TestScripts/exists +=== CONT TestScripts/setenv testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2608,20 +2690,17 @@ exe= GONOSUMDB=* - > chmod 444 foo_r - > exists foo - > ! exists unfoo - # TODO The following line fails but probably should not. - # ! exists -readonly foo (0.000s) - > exists foo_r - > exists -readonly foo_r + > setSpecialVal + > exists $SPECIALVAL.txt + > ensureSpecialVal PASS -=== CONT TestScripts/execguard -=== CONT TestScripts/interrupt +=== CONT TestScripts/regexpquote +=== CONT TestScripts/readfile +=== CONT TestScripts/regexpquote testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2630,22 +2709,14 @@ exe= GONOSUMDB=* - > [windows] skip - > signalcatcher & - > waitfile catchsignal - > interrupt - > wait - [background] testscript.test: exit status 0 - [stdout] - caught interrupt - > stdout 'caught interrupt' + > env XXX='hello)' + > grep ^${XXX@R}$ file.txt PASS -=== CONT TestScripts/exec_path_change -=== CONT TestScripts/hello +=== CONT TestScripts/nothing testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2654,20 +2725,13 @@ exe= GONOSUMDB=* - > [!exec:cat] stop - # hello world (0.054s) - > exec cat hello.text - [stdout] - hello world - > stdout 'hello world\n' - > ! stderr . + # Intentionally blank file, used to test that -testwork doesn't remove the work directory (0.000s) PASS -=== CONT TestScripts/evalsymlink -=== CONT TestScripts/execguard +=== CONT TestScripts/testscript_update_script testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2676,18 +2740,22 @@ exe= GONOSUMDB=* - > [exec:nosuchcommand] exec nosuchcommand - > [!exec:cat] stop - > exec cat foo - [stdout] - foo - > stdout 'foo\n' + > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript-update scripts + testscript: PASS + $WORK/scripts/testscript.txt updated -=== CONT TestScripts/defer + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== CONT TestScripts/interrupt +=== CONT TestScripts/hello +=== CONT TestScripts/stdin testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2696,15 +2764,33 @@ exe= GONOSUMDB=* - > testdefer - > testdefer - > testdefer + > [!exec:cat] skip + > stdin hello.txt + > exec cat + [stdout] + hello + + > stdout hello + > exec cat + > ! stdout hello + > [!exec:cat] stop + # Check that 'stdin stdout' works. (0.046s) + > exec cat hello.txt + [stdout] + hello + + > stdin stdout + > exec cat + [stdout] + hello + + > stdout hello PASS -=== CONT TestScripts/cpstdout +=== CONT TestScripts/hello testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2714,20 +2800,20 @@ GONOSUMDB=* > [!exec:cat] stop - # hello world (0.003s) + # hello world (0.018s) > exec cat hello.text [stdout] hello world - - > cp stdout got - > cmp got hello.text + > stdout 'hello world\n' + > ! stderr . PASS -=== CONT TestScripts/commandstatus -=== CONT TestScripts/evalsymlink +=== CONT TestScripts/exists +=== CONT TestScripts/execguard +=== CONT TestScripts/interrupt testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2736,25 +2822,21 @@ exe= GONOSUMDB=* - # If ioutil.TempDir returns a sym linked dir (default behaviour in macOS for example) the - # matcher will have problems with external programs that uses the real path. - # This script tests that $WORK is matched in a consistent way (also see #79). (0.064s) > [windows] skip - > exec pwd - [stdout] - $WORK - > stdout ^$WORK$ - > exec pwd -P + > signalcatcher & + > waitfile catchsignal + > interrupt + > wait + [background] testscript.test: exit status 0 [stdout] - $WORK - > stdout ^$WORK$ + caught interrupt + > stdout 'caught interrupt' PASS -=== CONT TestScripts/command -=== CONT TestScripts/wait +=== CONT TestScripts/exists testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2763,43 +2845,21 @@ exe= GONOSUMDB=* - > [!exec:echo] skip - > [!exec:false] skip - # TODO: the '\n' below doesn't work on Windows on Github Actions, which does - # have coreutils like "echo" installed. Perhaps they emit CRLF? (0.151s) - > [windows] skip - > exec echo foo - [stdout] - foo - > stdout foo - > exec echo foo & - > exec echo bar & - > ! exec false & - # Starting a background process should clear previous output. (0.000s) - > ! stdout foo - # Wait should set the output to the concatenated outputs of the background - # programs, in the order in which they were started. (0.001s) - > wait - [background] echo foo: exit status 0 - [stdout] - foo - [background] echo bar: exit status 0 - [stdout] - bar - [background] false: exit status 1 - > stdout 'foo\nbar' - # The end of the test should interrupt or kill any remaining background - # programs. (0.082s) - > [!exec:sleep] skip - > ! exec sleep 86400 & - [background] sleep 86400: signal: interrupt + > chmod 444 foo_r + > exists foo + > ! exists unfoo + # TODO The following line fails but probably should not. + # ! exists -readonly foo (0.000s) + > exists foo_r + > exists -readonly foo_r PASS -=== CONT TestScripts/setupfiles -=== CONT TestScripts/command +=== CONT TestScripts/exec_path_change +=== CONT TestScripts/evalsymlink +=== CONT TestScripts/readfile testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2808,17 +2868,21 @@ exe= GONOSUMDB=* - > printargs a b 'c d' + > echo stdout stdout [stdout] - ["printargs" "a" "b" "c d"] - > stdout '\["printargs" "a" "b" "c d"\]\n' + stdout + > testreadfile stdout + > echo stderr stderr + [stderr] + stderr + > testreadfile stderr + > testreadfile x/somefile PASS -=== CONT TestScripts/testscript_update_script -=== CONT TestScripts/setupfiles +=== CONT TestScripts/execguard testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2827,16 +2891,20 @@ exe= GONOSUMDB=* - # check that the Setup function saw the unarchived files, - # including the temp directory that's always created. (0.000s) - > setup-filenames a b tmp + > [exec:nosuchcommand] exec nosuchcommand + > [!exec:cat] stop + > exec cat foo + [stdout] + foo + > stdout 'foo\n' PASS -=== CONT TestScripts/stdin -=== CONT TestScripts/commandstatus +=== CONT TestScripts/defer +=== CONT TestScripts/cpstdout +=== CONT TestScripts/defer testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2845,18 +2913,16 @@ exe= GONOSUMDB=* - > ! status 1 - [exit status 1] - > ! status 2 - [exit status 2] - > status 0 + > testdefer + > testdefer + > testdefer PASS -=== CONT TestScripts/testscript_update_script_stderr -=== CONT TestScripts/testscript_update_script +=== CONT TestScripts/commandstatus +=== CONT TestScripts/cpstdout testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2865,20 +2931,20 @@ exe= GONOSUMDB=* - > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript-update scripts - testscript: - PASS - $WORK/scripts/testscript.txt updated + > [!exec:cat] stop + # hello world (0.021s) + > exec cat hello.text + [stdout] + hello world - > cmp scripts/testscript.txt testscript-new.txt + > cp stdout got + > cmp got hello.text PASS -=== CONT TestScripts/stdin +=== CONT TestScripts/evalsymlink testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2887,35 +2953,25 @@ exe= GONOSUMDB=* - > [!exec:cat] skip - > stdin hello.txt - > exec cat - [stdout] - hello - - > stdout hello - > exec cat - > ! stdout hello - > [!exec:cat] stop - # Check that 'stdin stdout' works. (0.013s) - > exec cat hello.txt + # If ioutil.TempDir returns a sym linked dir (default behaviour in macOS for example) the + # matcher will have problems with external programs that uses the real path. + # This script tests that $WORK is matched in a consistent way (also see #79). (0.055s) + > [windows] skip + > exec pwd [stdout] - hello - - > stdin stdout - > exec cat + $WORK + > stdout ^$WORK$ + > exec pwd -P [stdout] - hello - - > stdout hello + $WORK + > stdout ^$WORK$ PASS -=== CONT TestScripts/values -=== CONT TestScripts/setenv +=== CONT TestScripts/command === CONT TestScripts/values testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2927,10 +2983,11 @@ > test-values PASS -=== CONT TestScripts/setenv +=== CONT TestScripts/wait +=== CONT TestScripts/command testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2939,16 +2996,16 @@ exe= GONOSUMDB=* - > setSpecialVal - > exists $SPECIALVAL.txt - > ensureSpecialVal + > printargs a b 'c d' + [stdout] + ["printargs" "a" "b" "c d"] + > stdout '\["printargs" "a" "b" "c d"\]\n' PASS -=== CONT TestScripts/regexpquote === CONT TestScripts/testscript_update_script_stderr testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2968,11 +3025,10 @@ PASS === CONT TestScripts/testscript_update_script_quote -=== CONT TestScripts/testscript_update_script_expected_not_in_archive -=== CONT TestScripts/regexpquote +=== CONT TestScripts/wait testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2981,14 +3037,42 @@ exe= GONOSUMDB=* - > env XXX='hello)' - > grep ^${XXX@R}$ file.txt + > [!exec:echo] skip + > [!exec:false] skip + # TODO: the '\n' below doesn't work on Windows on Github Actions, which does + # have coreutils like "echo" installed. Perhaps they emit CRLF? (0.071s) + > [windows] skip + > exec echo foo + [stdout] + foo + > stdout foo + > exec echo foo & + > exec echo bar & + > ! exec false & + # Starting a background process should clear previous output. (0.000s) + > ! stdout foo + # Wait should set the output to the concatenated outputs of the background + # programs, in the order in which they were started. (0.008s) + > wait + [background] echo foo: exit status 0 + [stdout] + foo + [background] echo bar: exit status 0 + [stdout] + bar + [background] false: exit status 1 + > stdout 'foo\nbar' + # The end of the test should interrupt or kill any remaining background + # programs. (0.020s) + > [!exec:sleep] skip + > ! exec sleep 86400 & + [background] sleep 86400: signal: interrupt PASS -=== CONT TestScripts/testscript_update_script_quote +=== CONT TestScripts/commandstatus testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -2997,20 +3081,17 @@ exe= GONOSUMDB=* - > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript-update scripts - testscript: - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt + > ! status 1 + [exit status 1] + > ! status 2 + [exit status 2] + > status 0 PASS -=== CONT TestScripts/testscript_update_script_expected_not_in_archive +=== CONT TestScripts/testscript_update_script_quote testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -3019,29 +3100,20 @@ exe= GONOSUMDB=* - # Verify that comparing stdout against a file not in the archive does nothing (0.026s) > unquote scripts/testscript.txt - > cp scripts/testscript.txt unchanged - > ! testscript-update scripts + > unquote testscript-new.txt + > testscript-update scripts testscript: - > echo stdout right - [stdout] - right - > cp file expect - > cmp stdout expect - [diff -stdout +expect] - -right - +wrong - - FAIL: $WORK/scripts/testscript.txt:3: stdout and expect differ + PASS + $WORK/scripts/testscript.txt updated - > cmp scripts/testscript.txt unchanged + > cmp scripts/testscript.txt testscript-new.txt PASS === CONT TestScripts/exec_path_change testscript.go:382: WORK=$WORK - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -3051,7 +3123,7 @@ GONOSUMDB=* # If the PATH environment variable is set in the testscript.Params.Setup phase - # or set directly within a script, exec should honour that PATH (1.381s) + # or set directly within a script, exec should honour that PATH (3.265s) > [!exec:go] skip > env HOME=$WORK${/}home > [windows] env USERPROFILE=$WORK\home @@ -3071,40 +3143,40 @@ PASS --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/cmpenv (0.06s) + --- PASS: TestScripts/cmpenv (0.01s) + --- PASS: TestScripts/testscript_update_script_actual_is_file (0.05s) + --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.06s) + --- PASS: TestScripts/setenv (0.01s) + --- PASS: TestScripts/setupfiles (0.01s) + --- PASS: TestScripts/regexpquote (0.01s) + --- PASS: TestScripts/nothing (0.01s) + --- PASS: TestScripts/testscript_update_script (0.08s) + --- PASS: TestScripts/stdin (0.12s) + --- PASS: TestScripts/hello (0.03s) + --- PASS: TestScripts/interrupt (0.04s) + --- PASS: TestScripts/exists (0.01s) --- PASS: TestScripts/readfile (0.09s) - --- PASS: TestScripts/testscript_update_script_actual_is_file (0.09s) - --- PASS: TestScripts/nothing (0.06s) - --- PASS: TestScripts/exists (0.04s) - --- PASS: TestScripts/interrupt (0.11s) - --- PASS: TestScripts/hello (0.10s) - --- PASS: TestScripts/execguard (0.05s) - --- PASS: TestScripts/defer (0.02s) - --- PASS: TestScripts/cpstdout (0.06s) - --- PASS: TestScripts/evalsymlink (0.09s) - --- PASS: TestScripts/wait (0.29s) - --- PASS: TestScripts/command (0.02s) - --- PASS: TestScripts/setupfiles (0.02s) - --- PASS: TestScripts/commandstatus (0.04s) - --- PASS: TestScripts/stdin (0.05s) - --- PASS: TestScripts/testscript_update_script (0.06s) + --- PASS: TestScripts/execguard (0.03s) + --- PASS: TestScripts/defer (0.01s) + --- PASS: TestScripts/cpstdout (0.04s) + --- PASS: TestScripts/evalsymlink (0.07s) --- PASS: TestScripts/values (0.02s) - --- PASS: TestScripts/setenv (0.01s) - --- PASS: TestScripts/testscript_update_script_stderr (0.05s) - --- PASS: TestScripts/regexpquote (0.06s) - --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.08s) - --- PASS: TestScripts/testscript_update_script_quote (0.10s) - --- PASS: TestScripts/exec_path_change (1.46s) + --- PASS: TestScripts/command (0.07s) + --- PASS: TestScripts/testscript_update_script_stderr (0.04s) + --- PASS: TestScripts/wait (0.11s) + --- PASS: TestScripts/commandstatus (0.16s) + --- PASS: TestScripts/testscript_update_script_quote (0.05s) + --- PASS: TestScripts/exec_path_change (3.47s) === RUN TestTestwork ---- PASS: TestTestwork (6.00s) +--- PASS: TestTestwork (22.00s) === RUN TestWorkdirRoot === RUN TestWorkdirRoot/run_tests === RUN TestWorkdirRoot/run_tests/nothing === PAUSE TestWorkdirRoot/run_tests/nothing === CONT TestWorkdirRoot/run_tests/nothing testscript.go:382: - WORK=/tmp/382472499/script-nothing - PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + WORK=/tmp/698712737/script-nothing + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path HOME=/no-home TMPDIR=$WORK/tmp devnull=/dev/null @@ -3115,13 +3187,13 @@ # Intentionally empty test script; used to test Params.WorkdirRoot (0.000s) PASS ---- PASS: TestWorkdirRoot (0.07s) +--- PASS: TestWorkdirRoot (0.01s) --- PASS: TestWorkdirRoot/run_tests (0.00s) - --- PASS: TestWorkdirRoot/run_tests/nothing (0.07s) + --- PASS: TestWorkdirRoot/run_tests/nothing (0.00s) === RUN TestBadDir --- PASS: TestBadDir (0.00s) PASS -ok github.com/rogpeppe/go-internal/testscript 7.751s +ok github.com/rogpeppe/go-internal/testscript 25.655s === RUN Test === RUN Test/basic === RUN Test/basic#01 @@ -3149,7 +3221,7 @@ --- PASS: TestQuote/bad_data (0.00s) --- PASS: TestQuote/no_final_newline (0.00s) PASS -ok github.com/rogpeppe/go-internal/txtar 0.011s +ok github.com/rogpeppe/go-internal/txtar 0.082s make[1]: Leaving directory '/build/golang-github-rogpeppe-go-internal-1.6.2' create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=golang @@ -3179,10 +3251,10 @@ dh_dwz: warning: compressed debug information (#931891). dh_strip -a -O--buildsystem=golang dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-c +dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-x +dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-goproxy dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-addmod dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/testscript -dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-goproxy -dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-x dh_makeshlibs -a -O--buildsystem=golang dh_shlibdeps -a -O--buildsystem=golang dh_installdeb -O--buildsystem=golang @@ -3199,12 +3271,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/31980/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/31980/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/11131 and its subdirectories -I: Current time: Sat Aug 14 20:32:22 -12 2021 -I: pbuilder-time-stamp: 1629016342 +I: removing directory /srv/workspace/pbuilder/31980 and its subdirectories +I: Current time: Sun Aug 15 22:39:08 +14 2021 +I: pbuilder-time-stamp: 1629016748