Diff of the two buildlogs: -- --- b1/build.log 2024-05-31 01:49:33.039488937 +0000 +++ b2/build.log 2024-05-31 01:55:49.515476941 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Jul 2 20:10:45 -12 2025 -I: pbuilder-time-stamp: 1751530245 +I: Current time: Fri May 31 15:49:38 +14 2024 +I: pbuilder-time-stamp: 1717120178 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -28,52 +28,84 @@ dpkg-source: info: applying 246.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1292567/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3685169/tmp/hooks/D01_modify_environment starting +debug: Running on ionos1-amd64. +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 +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 May 31 01:50 /bin/sh -> /bin/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/3685169/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3685169/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='909e15139e514730b161f1138ffb6f6c' - 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='1292567' - PS1='# ' - PS2='> ' + INVOCATION_ID=3777c698b5e64a7fbd9a582508436123 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=3685169 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/r-b-build.SWo65vBY/pbuilderrc_gewT --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.SWo65vBY/b1 --logfile b1/build.log golang-github-rogpeppe-go-internal_1.12.0-3.dsc' - SUDO_GID='111' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.SWo65vBY/pbuilderrc_DdeK --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.SWo65vBY/b2 --logfile b2/build.log golang-github-rogpeppe-go-internal_1.12.0-3.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos15-amd64 6.7.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.7.12-1~bpo12+1 (2024-05-06) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Jun 30 14:05 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1292567/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 27 07:42 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3685169/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -167,7 +199,7 @@ Get: 44 http://deb.debian.org/debian unstable/main amd64 golang-golang-x-net-dev all 1:0.25.0+dfsg-1 [895 kB] Get: 45 http://deb.debian.org/debian unstable/main amd64 golang-golang-x-sync-dev all 0.7.0-1 [19.0 kB] Get: 46 http://deb.debian.org/debian unstable/main amd64 golang-golang-x-tools-dev all 1:0.20.0+ds-1 [1571 kB] -Fetched 73.0 MB in 4s (16.5 MB/s) +Fetched 73.0 MB in 5s (15.8 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (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 ... 19716 files and directories currently installed.) @@ -373,7 +405,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/ && 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.12.0-3_source.changes +I: user script /srv/workspace/pbuilder/3685169/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/3685169/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/ && 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.12.0-3_source.changes dpkg-buildpackage: info: source package golang-github-rogpeppe-go-internal dpkg-buildpackage: info: source version 1.12.0-3 dpkg-buildpackage: info: source distribution unstable @@ -391,43 +427,43 @@ dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang dh_auto_build -O--builddirectory=_build -O--buildsystem=golang - cd _build && go install -trimpath -v -p 42 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/diff 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/misspell github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll 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/robustio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/testscript/internal/pty github.com/rogpeppe/go-internal/txtar -internal/coverage/rtcov -log/internal -vendor/golang.org/x/crypto/cryptobyte/asn1 -cmp -internal/goarch -internal/godebugs + cd _build && go install -trimpath -v -p 20 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/diff 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/misspell github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll 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/robustio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/testscript/internal/pty github.com/rogpeppe/go-internal/txtar internal/unsafeheader -encoding -github.com/rogpeppe/go-internal/internal/syscall/windows -internal/goversion -vendor/golang.org/x/crypto/internal/alias -container/list +crypto/internal/alias +internal/goarch +unicode/utf8 +internal/coverage/rtcov internal/race +encoding +internal/godebugs internal/cpu sync/atomic -unicode/utf8 -github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll -internal/platform -internal/itoa -internal/nettrace -crypto/internal/boring/sig -crypto/internal/alias +internal/abi +cmp +runtime/internal/atomic +math/bits +internal/goexperiment crypto/subtle +runtime/internal/math +internal/chacha8rand runtime/internal/syscall -internal/goexperiment -math/bits +unicode +crypto/internal/boring/sig +log/internal internal/goos +internal/itoa unicode/utf16 -runtime/internal/atomic -unicode -runtime/internal/math -internal/chacha8rand -internal/abi +internal/nettrace +container/list +vendor/golang.org/x/crypto/cryptobyte/asn1 +vendor/golang.org/x/crypto/internal/alias +github.com/rogpeppe/go-internal/internal/misspell +internal/goversion +internal/platform +github.com/rogpeppe/go-internal/internal/syscall/windows +github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll runtime/internal/sys slices -github.com/rogpeppe/go-internal/internal/misspell internal/bytealg math runtime @@ -438,186 +474,175 @@ internal/singleflight runtime/cgo errors -sort internal/godebug -internal/safefilepath -internal/oserror +sort io +internal/oserror +internal/safefilepath +math/rand path strconv +internal/intern +vendor/golang.org/x/net/dns/dnsmessage +crypto/internal/nistec/fiat +syscall golang.org/x/mod/semver +github.com/rogpeppe/go-internal/par hash -vendor/golang.org/x/net/dns/dnsmessage bytes -crypto/internal/nistec/fiat -internal/intern -math/rand -crypto/rc4 -crypto crypto/internal/randutil -hash/crc32 strings -reflect -syscall github.com/rogpeppe/go-internal/semver -vendor/golang.org/x/text/transform -github.com/rogpeppe/go-internal/par +hash/crc32 +crypto +crypto/rc4 net/netip +reflect +vendor/golang.org/x/text/transform +bufio net/http/internal/ascii go/build/constraint -bufio regexp/syntax regexp -internal/syscall/execenv internal/syscall/unix +internal/syscall/execenv time -encoding/binary internal/fmtsort +encoding/binary github.com/rogpeppe/go-internal/fmtsort +internal/poll +io/fs +context +embed +crypto/cipher encoding/base64 crypto/internal/edwards25519/field crypto/md5 -crypto/cipher vendor/golang.org/x/crypto/internal/poly1305 -context -io/fs -internal/poll +crypto/internal/nistec +os encoding/pem -embed crypto/internal/boring -crypto/des vendor/golang.org/x/crypto/chacha20 +crypto/internal/edwards25519 +crypto/des crypto/sha256 -crypto/hmac -crypto/sha512 crypto/aes +crypto/sha512 +crypto/hmac crypto/sha1 -crypto/internal/nistec -crypto/internal/edwards25519 vendor/golang.org/x/crypto/hkdf -os -golang.org/x/mod/internal/lazyregexp github.com/rogpeppe/go-internal/lockedfile/internal/filelock path/filepath internal/sysinfo +golang.org/x/mod/internal/lazyregexp io/ioutil -internal/lazyregexp +vendor/golang.org/x/sys/cpu github.com/rogpeppe/go-internal/robustio +internal/lazyregexp fmt -vendor/golang.org/x/sys/cpu -github.com/rogpeppe/go-internal/renameio +net +crypto/ecdh os/exec +github.com/rogpeppe/go-internal/renameio vendor/golang.org/x/crypto/chacha20poly1305 -internal/goroot github.com/rogpeppe/go-internal/internal/os/execpath +internal/goroot encoding/hex -log -github.com/rogpeppe/go-internal/lockedfile -golang.org/x/tools/txtar -golang.org/x/mod/module flag compress/flate +golang.org/x/mod/module +encoding/json +golang.org/x/tools/txtar net/url +github.com/rogpeppe/go-internal/lockedfile +log +math/big +mime mime/quotedprintable -runtime/trace -github.com/rogpeppe/go-internal/diff +runtime/debug vendor/golang.org/x/net/http2/hpack net/http/internal -encoding/json +github.com/rogpeppe/go-internal/diff github.com/rogpeppe/go-internal/imports -runtime/debug +vendor/golang.org/x/text/unicode/norm +runtime/trace github.com/rogpeppe/go-internal/testscript/internal/pty -mime +github.com/rogpeppe/go-internal/txtar go/token -internal/buildcfg go/doc/comment -math/big -vendor/golang.org/x/text/unicode/norm -crypto/ecdh -github.com/rogpeppe/go-internal/txtar -go/scanner -vendor/golang.org/x/text/unicode/bidi -github.com/rogpeppe/go-internal/module +internal/buildcfg golang.org/x/mod/modfile -github.com/rogpeppe/go-internal/cache -github.com/rogpeppe/go-internal/cmd/txtar-addmod +github.com/rogpeppe/go-internal/module +vendor/golang.org/x/text/unicode/bidi github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-x -vendor/golang.org/x/text/secure/bidirule -go/ast -compress/gzip +go/scanner +github.com/rogpeppe/go-internal/cmd/txtar-addmod testing archive/zip +compress/gzip +github.com/rogpeppe/go-internal/cache +go/ast +vendor/golang.org/x/text/secure/bidirule vendor/golang.org/x/net/idna github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/dirhash -crypto/internal/boring/bbig -crypto/dsa crypto/rand -crypto/internal/bigmod crypto/elliptic +crypto/internal/bigmod +crypto/dsa encoding/asn1 +crypto/internal/boring/bbig +crypto/ed25519 +github.com/rogpeppe/go-internal/testenv +crypto/rsa go/internal/typeparams go/doc go/parser -crypto/ed25519 crypto/x509/pkix vendor/golang.org/x/crypto/cryptobyte -github.com/rogpeppe/go-internal/testenv -go/build crypto/ecdsa -crypto/rsa +go/build github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/gotooltest -net vendor/golang.org/x/net/http/httpproxy -net/textproto crypto/x509 +net/textproto vendor/golang.org/x/net/http/httpguts mime/multipart crypto/tls net/http/httptrace net/http github.com/rogpeppe/go-internal/goproxytest -github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/testscript +github.com/rogpeppe/go-internal/cmd/txtar-goproxy debian/rules override_dh_auto_test make[1]: Entering directory '/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0' patch -N -p1 -i debian/0001-Allow-TestSimple-cover-to-PASS.patch patching file _build/src/github.com/rogpeppe/go-internal/testscript/testscript.go Hunk #1 succeeded at 1155 (offset 57 lines). GOPROXY= dh_auto_test - cd _build && go test -vet=off -v -p 42 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/diff 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/misspell github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll 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/robustio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/testscript/internal/pty github.com/rogpeppe/go-internal/txtar + cd _build && go test -vet=off -v -p 20 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/diff 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/misspell github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll 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/robustio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/testscript/internal/pty github.com/rogpeppe/go-internal/txtar === RUN TestBasic ---- PASS: TestBasic (0.02s) +--- PASS: TestBasic (0.19s) === RUN TestGrowth ---- PASS: TestGrowth (1.42s) +--- PASS: TestGrowth (5.51s) === RUN TestVerifyPanic cache_test.go:138: go: internal cache error: cache verify failed: id=0100000000000000000000000000000000000000000000000000000000000000 changed:<<< >>> old: cb8379ac2098aa165029e3938a51da0bcecfc008fd6795f401178647f96c5b34 3 new: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad 3 ---- PASS: TestVerifyPanic (0.02s) +--- PASS: TestVerifyPanic (0.11s) === RUN TestCacheTrim ---- PASS: TestCacheTrim (0.03s) +--- PASS: TestCacheTrim (0.26s) === RUN TestHash --- PASS: TestHash (0.00s) === RUN TestHashFile --- PASS: TestHashFile (0.00s) PASS -ok github.com/rogpeppe/go-internal/cache 1.489s -? github.com/rogpeppe/go-internal/cmd/txtar-goproxy [no test files] -? 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/sysdll [no test files] -? github.com/rogpeppe/go-internal/modfile [no test files] -? github.com/rogpeppe/go-internal/module [no test files] -? github.com/rogpeppe/go-internal/renameio [no test files] -? github.com/rogpeppe/go-internal/robustio [no test files] -? github.com/rogpeppe/go-internal/semver [no test files] -? github.com/rogpeppe/go-internal/testenv [no test files] -? github.com/rogpeppe/go-internal/testscript/internal/pty [no test files] +ok github.com/rogpeppe/go-internal/cache 6.124s === RUN TestScripts === RUN TestScripts/continue === PAUSE TestScripts/continue @@ -644,20 +669,70 @@ === RUN TestScripts/work === PAUSE TestScripts/work === CONT TestScripts/continue -=== CONT TestScripts/skip -=== CONT TestScripts/work -=== CONT TestScripts/help +=== CONT TestScripts/nogo === CONT TestScripts/env_var_with_go -=== CONT TestScripts/env_values === CONT TestScripts/env_var_no_go -=== CONT TestScripts/update -=== CONT TestScripts/simple -=== CONT TestScripts/nogo +=== CONT TestScripts/env_values +=== CONT TestScripts/work +=== CONT TestScripts/help +=== CONT TestScripts/skip === CONT TestScripts/error +=== CONT TestScripts/simple +=== CONT TestScripts/update === CONT TestScripts/noproxy +=== NAME TestScripts/nogo + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + GOPATH=$WORK/.gopath + CCACHE_DISABLE=1 + GOARCH=amd64 + GOOS=linux + GOROOT=/usr/lib/go-1.22 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.22 + GOINTERNALMODPATH=. + GONOSUMDB=* + + # should support skip (0.000s) + > unquote file.txt + # We can't just set PATH to empty because we need the part of it that + # contains the command names, so use a special builtin instead. (0.058s) + > dropgofrompath + > ! testscript -v file.txt + [stdout] + WORK=$WORK + PATH=/tmp/testscript-main1531776814/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + + > go env + FAIL: $WORK/.tmp/testscript2374499972/file.txt/script.txtar:1: unknown command "go" + [stderr] + error running file.txt in $WORK/.tmp/testscript2374499972/file.txt + + [exit status 1] + > stdout 'unknown command "go"' + > stderr 'error running file.txt in' + PASS + === NAME TestScripts/help testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -677,7 +752,7 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # Simply sanity check on help output (0.005s) + # Simply sanity check on help output (0.100s) > ! testscript -help [stderr] The testscript command runs github.com/rogpeppe/go-internal/testscript scripts @@ -807,59 +882,9 @@ > stderr 'Examples' PASS -=== NAME TestScripts/nogo - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - GOPATH=$WORK/.gopath - CCACHE_DISABLE=1 - GOARCH=amd64 - GOOS=linux - GOROOT=/usr/lib/go-1.22 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.22 - GOINTERNALMODPATH=. - GONOSUMDB=* - - # should support skip (0.000s) - > unquote file.txt - # We can't just set PATH to empty because we need the part of it that - # contains the command names, so use a special builtin instead. (0.006s) - > dropgofrompath - > ! testscript -v file.txt - [stdout] - WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/sbin:/sbin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - - > go env - FAIL: $WORK/.tmp/testscript1942859201/file.txt/script.txtar:1: unknown command "go" - [stderr] - error running file.txt in $WORK/.tmp/testscript1942859201/file.txt - - [exit status 1] - > stdout 'unknown command "go"' - > stderr 'error running file.txt in' - PASS - === NAME TestScripts/env_var_no_go testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -881,18 +906,18 @@ # Test passing environment variables to scripts with no go command on PATH # - # This is the counterpart to env_var_with_go.txt (0.000s) + # This is the counterpart to env_var_with_go.txt (0.001s) > unquote noproxy.txt > unquote withproxy.txt > dropgofrompath > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= - # no GOPROXY, no pass-through, no proxy (0.005s) + # no GOPROXY, no pass-through, no proxy (0.123s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -913,11 +938,11 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.014s) + # no GOPROXY, no pass-through, with proxy (0.079s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -926,7 +951,7 @@ :=: $=$ exe= - GOPROXY=http://127.0.0.1:36965/mod + GOPROXY=http://127.0.0.1:39911/mod GONOSUMDB=* > env BANANA @@ -934,17 +959,17 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:36965/mod + GOPROXY=http://127.0.0.1:39911/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.008s) + # no GOPROXY, with pass-through, no proxy (0.044s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -968,11 +993,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.009s) + # no GOPROXY, with pass-through, with proxy (0.052s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -998,11 +1023,11 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.006s) + # with GOPROXY, no pass-through, no proxy (0.067s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1023,11 +1048,11 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # with GOPROXY, no pass-through, with proxy (0.007s) + # with GOPROXY, no pass-through, with proxy (0.052s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1036,7 +1061,7 @@ :=: $=$ exe= - GOPROXY=http://127.0.0.1:32855/mod + GOPROXY=http://127.0.0.1:34479/mod GONOSUMDB=* > env BANANA @@ -1044,17 +1069,17 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:32855/mod + GOPROXY=http://127.0.0.1:34479/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.006s) + # with GOPROXY, with pass-through, no proxy (0.068s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1078,11 +1103,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, with pass-through, with proxy (0.010s) + # with GOPROXY, with pass-through, with proxy (0.072s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1109,9 +1134,9 @@ > ! stderr .+ PASS -=== NAME TestScripts/skip +=== NAME TestScripts/continue testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1131,12 +1156,31 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # should support skip (0.138s) + # should support -continue (0.000s) > unquote file.txt - > testscript -v file.txt + # Running with continue, the testscript command itself + # should fail, but we should see the results of executing + # both commands. (0.666s) + > ! testscript -continue file.txt [stdout] - WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + > grep banana in + [in] + apple + + FAIL: $WORK/.tmp/testscript4120538796/file.txt/script.txtar:1: no match for `banana` found in in + > grep apple in + [stderr] + error running file.txt in $WORK/.tmp/testscript4120538796/file.txt + + [exit status 1] + > stdout 'grep banana in' + > stdout 'no match for `banana` found in in' + > stdout 'grep apple in' + PASS + +=== NAME TestScripts/work + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1153,19 +1197,42 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.22 + GOINTERNALMODPATH=. + GONOSUMDB=* - > go version + # Test that passing -work leaves behind the working directory + # that contains the temporary directories within which the + # script arguments are expanded. + # + # This test also covers the use of multiple scripts which share + # the same basename, ensuring that the naming of the directories + # within the working directory. (0.682s) + > unquote file.txt dir/file.txt + > testscript -v -work file.txt dir/file.txt [stdout] - go version go1.22.3 linux/amd64 + WORK=$WORK + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + GOPATH=$WORK/.gopath + CCACHE_DISABLE=1 + GOARCH=amd64 + GOOS=linux + GOROOT=/usr/lib/go-1.22 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.22 - > skip - > stdout 'go version' - > ! stderr .+ + > exec true PASS - -=== NAME TestScripts/continue - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + WORK=$WORK + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1182,34 +1249,23 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.22 - GOINTERNALMODPATH=. - GONOSUMDB=* - - # should support -continue (0.000s) - > unquote file.txt - # Running with continue, the testscript command itself - # should fail, but we should see the results of executing - # both commands. (0.138s) - > ! testscript -continue file.txt - [stdout] - > grep banana in - [in] - apple - FAIL: $WORK/.tmp/testscript4006529078/file.txt/script.txtar:1: no match for `banana` found in in - > grep apple in + > exec true + PASS [stderr] - error running file.txt in $WORK/.tmp/testscript4006529078/file.txt - - [exit status 1] - > stdout 'grep banana in' - > stdout 'no match for `banana` found in in' - > stdout 'grep apple in' + temporary work directory: $WORK/.tmp/testscript1571943994 + temporary work directory for file.txt: $WORK/.tmp/go-test-script1897938473/script-script + temporary work directory for dir/file.txt: $WORK/.tmp/go-test-script797273089/script-script + > stderr '^temporary work directory: \Q'$WORK'\E[/\\]\.tmp[/\\]' + > stderr '^temporary work directory for file.txt: \Q'$WORK'\E[/\\]\.tmp[/\\]' + > stderr '^temporary work directory for dir[/\\]file.txt: \Q'$WORK'\E[/\\]\.tmp[/\\]' + > expandone $WORK/.tmp/testscript*/file.txt/script.txtar + > expandone $WORK/.tmp/testscript*/file.txt1/script.txtar PASS -=== NAME TestScripts/work +=== NAME TestScripts/update testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1229,18 +1285,28 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # Test that passing -work leaves behind the working directory - # that contains the temporary directories within which the - # script arguments are expanded. - # - # This test also covers the use of multiple scripts which share - # the same basename, ensuring that the naming of the directories - # within the working directory. (0.140s) - > unquote file.txt dir/file.txt - > testscript -v -work file.txt dir/file.txt + # should support the -update flag (0.056s) + > unquote in.txt res.txt + # Should be an error to use -u with only stdin (0.070s) + > stdin in.txt + > ! testscript -u + [stderr] + cannot use -u when reading from stdin + [exit status 1] + > stderr 'cannot use -u when reading from stdin' + # It is ok to use -u when reading from stdin and + # a regular file (0.525s) + > testscript -u - in.txt [stdout] - WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PASS + PASS + $WORK/.tmp/testscript1304335871/in.txt/script.txtar updated + > cmp in.txt res.txt + PASS + +=== NAME TestScripts/skip + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1257,11 +1323,15 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.22 + GOINTERNALMODPATH=. + GONOSUMDB=* - > exec true - PASS + # should support skip (0.686s) + > unquote file.txt + > testscript -v file.txt + [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1279,22 +1349,18 @@ GOPROXY=https://proxy.golang.org,direct goversion=1.22 - > exec true - PASS - [stderr] - temporary work directory: $WORK/.tmp/testscript980836550 - temporary work directory for file.txt: $WORK/.tmp/go-test-script2885624465/script-script - temporary work directory for dir/file.txt: $WORK/.tmp/go-test-script3140733549/script-script - > stderr '^temporary work directory: \Q'$WORK'\E[/\\]\.tmp[/\\]' - > stderr '^temporary work directory for file.txt: \Q'$WORK'\E[/\\]\.tmp[/\\]' - > stderr '^temporary work directory for dir[/\\]file.txt: \Q'$WORK'\E[/\\]\.tmp[/\\]' - > expandone $WORK/.tmp/testscript*/file.txt/script.txtar - > expandone $WORK/.tmp/testscript*/file.txt1/script.txtar + > go version + [stdout] + go version go1.22.3 linux/amd64 + + > skip + > stdout 'go version' + > ! stderr .+ PASS === NAME TestScripts/noproxy testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1317,13 +1383,13 @@ # With no .gomodproxy supporting files, we use the GOPROXY from # the environment. # Note that Go 1.21 started quoting with single quotes in "go env", - # where older versions used double quotes. (0.135s) + # where older versions used double quotes. (0.669s) > env GOPROXY=0.1.2.3 > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1382,57 +1448,16 @@ CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' - GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build1601455225=/tmp/go-build -gno-record-gcc-switches' + GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build28043633=/tmp/go-build -gno-record-gcc-switches' > [!windows] stdout '^GOPROXY=[''"]0.1.2.3[''"]$' > [windows] stdout '^set GOPROXY=0.1.2.3$' PASS PASS -=== NAME TestScripts/update - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - GOPATH=$WORK/.gopath - CCACHE_DISABLE=1 - GOARCH=amd64 - GOOS=linux - GOROOT=/usr/lib/go-1.22 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.22 - GOINTERNALMODPATH=. - GONOSUMDB=* - - # should support the -update flag (0.000s) - > unquote in.txt res.txt - # Should be an error to use -u with only stdin (0.005s) - > stdin in.txt - > ! testscript -u - [stderr] - cannot use -u when reading from stdin - [exit status 1] - > stderr 'cannot use -u when reading from stdin' - # It is ok to use -u when reading from stdin and - # a regular file (0.138s) - > testscript -u - in.txt - [stdout] - PASS - PASS - $WORK/.tmp/testscript2303361128/in.txt/script.txtar updated - > cmp in.txt res.txt - PASS - === NAME TestScripts/simple testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1453,13 +1478,13 @@ GONOSUMDB=* # With .gomodproxy supporting files, any GOPROXY from the - # environment should be overridden by the test proxy. (0.164s) + # environment should be overridden by the test proxy. (0.788s) > env GOPROXY=0.1.2.3 > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1474,7 +1499,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.22 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:34161/mod + GOPROXY=http://127.0.0.1:39317/mod goversion=1.22 GONOSUMDB=* @@ -1499,9 +1524,9 @@ > ! stderr .+ PASS -=== NAME TestScripts/error +=== NAME TestScripts/env_values testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1521,14 +1546,30 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # should support skip (0.000s) - > unquote file.txt - # stdin (0.122s) - > stdin file.txt - > ! testscript -v + # Test that passing env values, e.g. ENV1=val, works (0.000s) + > unquote test.txt + > env BLAH1= + > env BLAH2=junk + # Normal operation (0.763s) + > testscript -e BLAH1=rubbish -e BLAH2 test.txt [stdout] - WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PASS + # It is an error to specify WORK. Note the error message + # appears on stdout because it is written to the log output + # of testscript, which has no concept of stderr. (0.284s) + > ! testscript -e BLAH1=rubbish -e BLAH2 -e WORK test.txt + [stdout] + FAIL: $WORK/.tmp/testscript1704214416/test.txt/script.txtar:0: cannot override WORK variable + [stderr] + error running test.txt in $WORK/.tmp/testscript1704214416/test.txt + + [exit status 1] + > stdout 'cannot override WORK variable' + PASS + +=== NAME TestScripts/error + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1545,20 +1586,17 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.22 + GOINTERNALMODPATH=. + GONOSUMDB=* - > exec false - [exit status 1] - FAIL: $WORK/.tmp/testscript848377478/-/script.txtar:1: unexpected command failure - [stderr] - error running in $WORK/.tmp/testscript848377478/- - - [exit status 1] - > stderr 'error running in' - # file-based (0.045s) - > ! testscript -v file.txt + # should support skip (0.001s) + > unquote file.txt + # stdin (0.692s) + > stdin file.txt + > ! testscript -v [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1578,17 +1616,17 @@ > exec false [exit status 1] - FAIL: $WORK/.tmp/testscript960264541/file.txt/script.txtar:1: unexpected command failure + FAIL: $WORK/.tmp/testscript1706682648/-/script.txtar:1: unexpected command failure [stderr] - error running file.txt in $WORK/.tmp/testscript960264541/file.txt + error running in $WORK/.tmp/testscript1706682648/- [exit status 1] - > stderr 'error running file.txt in' - PASS - -=== NAME TestScripts/env_values - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + > stderr 'error running in' + # file-based (0.358s) + > ! testscript -v file.txt + [stdout] + WORK=$WORK + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1605,33 +1643,20 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.22 - GOINTERNALMODPATH=. - GONOSUMDB=* - # Test that passing env values, e.g. ENV1=val, works (0.000s) - > unquote test.txt - > env BLAH1= - > env BLAH2=junk - # Normal operation (0.130s) - > testscript -e BLAH1=rubbish -e BLAH2 test.txt - [stdout] - PASS - # It is an error to specify WORK. Note the error message - # appears on stdout because it is written to the log output - # of testscript, which has no concept of stderr. (0.042s) - > ! testscript -e BLAH1=rubbish -e BLAH2 -e WORK test.txt - [stdout] - FAIL: $WORK/.tmp/testscript623306154/test.txt/script.txtar:0: cannot override WORK variable + > exec false + [exit status 1] + FAIL: $WORK/.tmp/testscript1086917256/file.txt/script.txtar:1: unexpected command failure [stderr] - error running test.txt in $WORK/.tmp/testscript623306154/test.txt + error running file.txt in $WORK/.tmp/testscript1086917256/file.txt [exit status 1] - > stdout 'cannot override WORK variable' + > stderr 'error running file.txt in' PASS === NAME TestScripts/env_var_with_go testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1657,14 +1682,14 @@ # 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.000s) + # This is the counterpart to env_var_no_go.txt (0.001s) > unquote noproxy.txt > unquote withproxy.txt - # Baseline (0.131s) + # Baseline (0.652s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1696,11 +1721,11 @@ > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= - # no GOPROXY, no pass-through, no proxy (0.037s) + # no GOPROXY, no pass-through, no proxy (0.263s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1729,11 +1754,11 @@ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=https://proxy.golang.org,direct$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.041s) + # no GOPROXY, no pass-through, with proxy (0.486s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1748,7 +1773,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.22 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:40539/mod + GOPROXY=http://127.0.0.1:34071/mod goversion=1.22 GONOSUMDB=* @@ -1757,17 +1782,17 @@ > env GOPATH GOPATH=$WORK/.gopath > env GOPROXY - GOPROXY=http://127.0.0.1:40539/mod + GOPROXY=http://127.0.0.1:34071/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.045s) + # no GOPROXY, with pass-through, no proxy (0.338s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1797,11 +1822,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.036s) + # no GOPROXY, with pass-through, with proxy (0.164s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1833,11 +1858,11 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.038s) + # with GOPROXY, no pass-through, no proxy (0.296s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1866,11 +1891,11 @@ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, no pass-through, with proxy (0.039s) + # with GOPROXY, no pass-through, with proxy (0.224s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1885,7 +1910,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.22 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:42437/mod + GOPROXY=http://127.0.0.1:37861/mod goversion=1.22 GONOSUMDB=* @@ -1894,17 +1919,17 @@ > env GOPATH GOPATH=$WORK/.gopath > env GOPROXY - GOPROXY=http://127.0.0.1:42437/mod + GOPROXY=http://127.0.0.1:37861/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.035s) + # with GOPROXY, with pass-through, no proxy (0.292s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1934,11 +1959,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, with pass-through, with proxy (0.040s) + # with GOPROXY, with pass-through, with proxy (0.292s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3377581776/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1531776814/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1971,21 +1996,22 @@ > ! stderr .+ PASS ---- PASS: TestScripts (0.05s) - --- PASS: TestScripts/help (0.01s) - --- PASS: TestScripts/nogo (0.01s) - --- PASS: TestScripts/env_var_no_go (0.07s) - --- PASS: TestScripts/skip (0.14s) - --- PASS: TestScripts/continue (0.14s) - --- PASS: TestScripts/work (0.14s) - --- PASS: TestScripts/noproxy (0.14s) - --- PASS: TestScripts/update (0.15s) - --- PASS: TestScripts/simple (0.16s) - --- PASS: TestScripts/error (0.17s) - --- PASS: TestScripts/env_values (0.17s) - --- PASS: TestScripts/env_var_with_go (0.44s) +--- PASS: TestScripts (0.30s) + --- PASS: TestScripts/nogo (0.11s) + --- PASS: TestScripts/help (0.10s) + --- PASS: TestScripts/env_var_no_go (0.56s) + --- PASS: TestScripts/continue (0.67s) + --- PASS: TestScripts/work (0.69s) + --- PASS: TestScripts/update (0.65s) + --- PASS: TestScripts/skip (0.69s) + --- PASS: TestScripts/noproxy (0.67s) + --- PASS: TestScripts/simple (0.79s) + --- PASS: TestScripts/env_values (1.05s) + --- PASS: TestScripts/error (1.05s) + --- PASS: TestScripts/env_var_with_go (3.03s) PASS -ok github.com/rogpeppe/go-internal/cmd/testscript 0.503s +ok github.com/rogpeppe/go-internal/cmd/testscript 3.451s +? github.com/rogpeppe/go-internal/cmd/txtar-goproxy [no test files] === RUN TestScripts === RUN TestScripts/encode === PAUSE TestScripts/encode @@ -2000,7 +2026,7 @@ go proxy: no archive github.com/shurcooL v0.0.0-20171119174359-809beceb2371 === NAME TestScripts/encode testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3839066541/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3915967869/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2015,7 +2041,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.22 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:39643/mod + GOPROXY=http://127.0.0.1:43149/mod goversion=1.22 GONOSUMDB=* @@ -2028,7 +2054,7 @@ === NAME TestScripts/to_stdout testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3839066541/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3915967869/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2043,7 +2069,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.22 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:39643/mod + GOPROXY=http://127.0.0.1:43149/mod goversion=1.22 GONOSUMDB=* @@ -2070,7 +2096,7 @@ === NAME TestScripts/txtar-addmod-self testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3839066541/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3915967869/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2085,7 +2111,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.22 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:39643/mod + GOPROXY=http://127.0.0.1:43149/mod goversion=1.22 GONOSUMDB=* @@ -2099,12 +2125,12 @@ > grep '-- foobar --' $WORK/out/github.com_gobin-testrepos_simple-main_v1.0.0.txtar PASS ---- PASS: TestScripts (0.04s) - --- PASS: TestScripts/encode (0.04s) - --- PASS: TestScripts/to_stdout (0.13s) - --- PASS: TestScripts/txtar-addmod-self (0.17s) +--- PASS: TestScripts (0.23s) + --- PASS: TestScripts/encode (0.30s) + --- PASS: TestScripts/to_stdout (0.43s) + --- PASS: TestScripts/txtar-addmod-self (0.65s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 0.215s +ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 0.949s === RUN TestScripts === RUN TestScripts/all === PAUSE TestScripts/all @@ -2115,12 +2141,12 @@ === RUN TestScripts/txtar-savedir-self === PAUSE TestScripts/txtar-savedir-self === CONT TestScripts/all +=== CONT TestScripts/needquote === CONT TestScripts/quote === CONT TestScripts/txtar-savedir-self -=== CONT TestScripts/needquote === NAME TestScripts/quote testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main833179419/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1036611550/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2142,9 +2168,9 @@ > cmp stdout expect PASS -=== NAME TestScripts/txtar-savedir-self +=== NAME TestScripts/needquote testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main833179419/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1036611550/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2154,29 +2180,21 @@ $=$ exe= + > unquote blah/withsep > 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 .+ + -- 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 -=== NAME TestScripts/needquote +=== NAME TestScripts/txtar-savedir-self testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main833179419/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1036611550/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2186,21 +2204,29 @@ $=$ exe= - > unquote blah/withsep > 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 === NAME TestScripts/all testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main833179419/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1036611550/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2212,7 +2238,7 @@ > unquote expect-all > unquote expect-no-all - # Without the -a flag, it should ignore . files. (0.003s) + # Without the -a flag, it should ignore . files. (0.032s) > txtar-c blah [stdout] -- go.mod -- @@ -2228,7 +2254,7 @@ } > ! stderr .+ > cmp stdout expect-no-all - # With the -a flag, it should include them. (0.005s) + # With the -a flag, it should include them. (0.032s) > txtar-c -a blah [stdout] -- .foo/foo -- @@ -2252,11 +2278,11 @@ --- PASS: TestScripts (0.00s) --- PASS: TestScripts/quote (0.01s) - --- PASS: TestScripts/txtar-savedir-self (0.00s) - --- PASS: TestScripts/needquote (0.00s) - --- PASS: TestScripts/all (0.01s) + --- PASS: TestScripts/needquote (0.02s) + --- PASS: TestScripts/txtar-savedir-self (0.03s) + --- PASS: TestScripts/all (0.07s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.016s +ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.104s === RUN TestScripts === RUN TestScripts/extract-dir === PAUSE TestScripts/extract-dir @@ -2270,9 +2296,9 @@ === CONT TestScripts/extract-stdin === CONT TestScripts/extract === CONT TestScripts/extract-out-of-bounds -=== NAME TestScripts/extract-stdin +=== NAME TestScripts/extract testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main130778295/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main20016097/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2283,15 +2309,14 @@ exe= > unquote file.txtar - > stdin file.txtar - > txtar-x + > txtar-x file.txtar > cmp foo expect/foo > cmp a/b/bar expect/a/b/bar PASS === NAME TestScripts/extract-dir testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main130778295/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main20016097/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2307,27 +2332,9 @@ > cmp x/y/a/b/bar expect/a/b/bar PASS -=== NAME TestScripts/extract - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main130778295/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - - > unquote file.txtar - > txtar-x file.txtar - > cmp foo expect/foo - > cmp a/b/bar expect/a/b/bar - PASS - === NAME TestScripts/extract-out-of-bounds testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main130778295/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main20016097/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2350,13 +2357,32 @@ > stderr '"/foo": outside parent directory' PASS +=== NAME TestScripts/extract-stdin + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main20016097/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + + > unquote file.txtar + > stdin file.txtar + > txtar-x + > cmp foo expect/foo + > cmp a/b/bar expect/a/b/bar + PASS + --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/extract-stdin (0.01s) - --- PASS: TestScripts/extract-dir (0.01s) - --- PASS: TestScripts/extract (0.01s) - --- PASS: TestScripts/extract-out-of-bounds (0.01s) + --- PASS: TestScripts/extract (0.03s) + --- PASS: TestScripts/extract-dir (0.04s) + --- PASS: TestScripts/extract-stdin (0.05s) + --- PASS: TestScripts/extract-out-of-bounds (0.05s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.014s +ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.072s === RUN Test === RUN Test/allnew.txt === RUN Test/allold.txt @@ -2384,17 +2410,17 @@ --- PASS: Test/start.txt (0.00s) --- PASS: Test/triv.txt (0.00s) PASS -ok github.com/rogpeppe/go-internal/diff 0.008s +ok github.com/rogpeppe/go-internal/diff 0.047s === RUN TestHash1 --- PASS: TestHash1 (0.00s) === RUN TestHashDir ---- PASS: TestHashDir (0.00s) +--- PASS: TestHashDir (0.01s) === RUN TestHashZip --- PASS: TestHashZip (0.00s) === RUN TestDirFiles --- PASS: TestDirFiles (0.00s) PASS -ok github.com/rogpeppe/go-internal/dirhash 0.008s +ok github.com/rogpeppe/go-internal/dirhash 0.044s === RUN TestCompare --- PASS: TestCompare (0.00s) === RUN TestOrder @@ -2402,13 +2428,23 @@ === RUN TestInterface --- PASS: TestInterface (0.00s) PASS -ok github.com/rogpeppe/go-internal/fmtsort 0.004s +ok github.com/rogpeppe/go-internal/fmtsort 0.036s +? 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/sysdll [no test files] +? github.com/rogpeppe/go-internal/modfile [no test files] +? github.com/rogpeppe/go-internal/module [no test files] +? github.com/rogpeppe/go-internal/renameio [no test files] +? github.com/rogpeppe/go-internal/robustio [no test files] +? github.com/rogpeppe/go-internal/semver [no test files] +? github.com/rogpeppe/go-internal/testenv [no test files] +? github.com/rogpeppe/go-internal/testscript/internal/pty [no test files] === RUN TestScripts === RUN TestScripts/list === PAUSE TestScripts/list === CONT TestScripts/list testscript.go:558: WORK=$WORK - PATH=/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2423,7 +2459,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.22 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:34151/mod + GOPROXY=http://127.0.0.1:33161/mod goversion=1.22 GONOSUMDB=* @@ -2446,19 +2482,19 @@ # as that places GOMODCACHE inside the Go module and "mod tidy" walks it. # "mod tidy" then complains about invalid import paths such as # "mod/gopath/pkg/mod/fruit.com@v1.1.0/fruit". - # It's for that reason that we moved the default GOPATH to ${WORK}/.gopath. (0.006s) + # It's for that reason that we moved the default GOPATH to ${WORK}/.gopath. (0.034s) > go mod tidy [stderr] go: warning: "all" matched no packages PASS ---- PASS: TestScripts (0.04s) - --- PASS: TestScripts/list (0.05s) +--- PASS: TestScripts (0.19s) + --- PASS: TestScripts/list (0.26s) PASS -ok github.com/rogpeppe/go-internal/goproxytest 0.096s +ok github.com/rogpeppe/go-internal/goproxytest 0.492s === RUN TestInitGoEnv ---- PASS: TestInitGoEnv (0.04s) +--- PASS: TestInitGoEnv (0.20s) === RUN TestSimple === RUN TestSimple/cover === PAUSE TestSimple/cover @@ -2470,7 +2506,7 @@ === CONT TestSimple/version === CONT TestSimple/env testscript.go:558: WORK=$WORK - PATH=/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2490,7 +2526,7 @@ GOINTERNAL_MODULE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/src/github.com/rogpeppe/go-internal # GOPATH and GOMODCACHE are not shared with the host, - # but GOCACHE is. (0.015s) + # but GOCACHE is. (0.056s) > go env [stdout] GO111MODULE='' @@ -2532,7 +2568,7 @@ CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' - GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build2666890863=/tmp/go-build -gno-record-gcc-switches' + GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build2304021529=/tmp/go-build -gno-record-gcc-switches' > stdout GOPATH=.*${WORK@R} > stdout GOMODCACHE=.*${WORK@R} @@ -2541,7 +2577,7 @@ === NAME TestSimple/version testscript.go:558: WORK=$WORK - PATH=/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2572,7 +2608,7 @@ === NAME TestSimple/cover testscript.go:1163: testscript.go:558: WORK=$WORK - PATH=/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2593,25 +2629,25 @@ > unquote scripts/exec.txt # The module uses testscript itself. - # Use the checked out module, based on where the test binary ran. (0.105s) + # Use the checked out module, based on where the test binary ran. (0.715s) > go mod edit -replace=github.com/rogpeppe/go-internal=${GOINTERNAL_MODULE} > go mod tidy [stderr] go: found github.com/rogpeppe/go-internal/gotooltest in github.com/rogpeppe/go-internal v0.0.0-00010101000000-000000000000 go: found github.com/rogpeppe/go-internal/testscript in github.com/rogpeppe/go-internal v0.0.0-00010101000000-000000000000 go: github.com/rogpeppe/go-internal@v0.0.0-00010101000000-000000000000 requires - golang.org/x/mod@v0.9.0: Get "https://proxy.golang.org/golang.org/x/mod/@v/v0.9.0.mod": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:36347->[::1]:53: read: connection refused + golang.org/x/mod@v0.9.0: Get "https://proxy.golang.org/golang.org/x/mod/@v/v0.9.0.mod": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:39120->[::1]:53: read: connection refused [exit status 1] FAIL: testdata/cover.txt:6: unexpected go command failure SKIP: TestSimple/cover: Possible restricted network access ---- PASS: TestSimple (0.05s) - --- PASS: TestSimple/env (0.02s) - --- PASS: TestSimple/version (0.09s) - --- SKIP: TestSimple/cover (0.11s) +--- PASS: TestSimple (0.31s) + --- PASS: TestSimple/env (0.06s) + --- PASS: TestSimple/version (0.23s) + --- SKIP: TestSimple/cover (0.72s) PASS -ok github.com/rogpeppe/go-internal/gotooltest 0.208s +ok github.com/rogpeppe/go-internal/gotooltest 1.264s === RUN TestReadImports --- PASS: TestReadImports (0.00s) === RUN TestReadComments @@ -2625,7 +2661,7 @@ === RUN TestScanStar --- PASS: TestScanStar (0.00s) PASS -ok github.com/rogpeppe/go-internal/imports 0.007s +ok github.com/rogpeppe/go-internal/imports 0.036s === RUN TestAlmostEqual === PAUSE TestAlmostEqual === CONT TestAlmostEqual @@ -2657,7 +2693,7 @@ --- PASS: FuzzAlmostEqual/b323cef1fc26e507 (0.00s) --- PASS: FuzzAlmostEqual/c6edde4256d6f5eb (0.00s) PASS -ok github.com/rogpeppe/go-internal/internal/misspell 0.007s +ok github.com/rogpeppe/go-internal/internal/misspell 0.043s === RUN TestMutexExcludes === PAUSE TestMutexExcludes === RUN TestReadWaitsForLock @@ -2665,32 +2701,29 @@ === RUN TestCanLockExistingFile === PAUSE TestCanLockExistingFile === RUN TestSpuriousEDEADLK ---- PASS: TestSpuriousEDEADLK (0.02s) +--- PASS: TestSpuriousEDEADLK (0.06s) === RUN TestTransform ---- PASS: TestTransform (0.49s) +--- PASS: TestTransform (2.99s) === CONT TestMutexExcludes -=== CONT TestCanLockExistingFile -=== CONT TestReadWaitsForLock -=== NAME TestMutexExcludes lockedfile_test.go:85: mu := MutexAt(_) lockedfile_test.go:91: unlock, _ := mu.Lock() lockedfile_test.go:94: mu2 := MutexAt(mu.Path) -=== NAME TestReadWaitsForLock +=== CONT TestCanLockExistingFile +=== CONT TestReadWaitsForLock lockedfile_test.go:134: WriteString("part 1\n") = === NAME TestMutexExcludes lockedfile_test.go:107: unlock() -=== NAME TestReadWaitsForLock - lockedfile_test.go:156: WriteString("part 2\n") = +--- PASS: TestCanLockExistingFile (0.01s) === NAME TestMutexExcludes lockedfile_test.go:102: unlock2, _ := mu2.Lock() lockedfile_test.go:103: unlock2() +--- PASS: TestMutexExcludes (0.01s) === NAME TestReadWaitsForLock + lockedfile_test.go:156: WriteString("part 2\n") = lockedfile_test.go:146: Read(_) = "part 1\npart 2\n" ---- PASS: TestMutexExcludes (0.01s) ---- PASS: TestCanLockExistingFile (0.01s) ---- PASS: TestReadWaitsForLock (0.01s) +--- PASS: TestReadWaitsForLock (0.02s) PASS -ok github.com/rogpeppe/go-internal/lockedfile 0.527s +ok github.com/rogpeppe/go-internal/lockedfile 3.096s === RUN TestLockExcludesLock === PAUSE TestLockExcludesLock === RUN TestLockExcludesRLock @@ -2698,72 +2731,66 @@ === RUN TestRLockExcludesOnlyLock === PAUSE TestRLockExcludesOnlyLock === RUN TestLockNotDroppedByExecCommand - filelock_test.go:188: fd 7 = /tmp/TestLockNotDroppedByExecCommand2928289758 + filelock_test.go:188: fd 7 = /tmp/TestLockNotDroppedByExecCommand3089883208 filelock_test.go:191: Lock(fd 7) = - filelock_test.go:193: fd 8 = os.Open("/tmp/TestLockNotDroppedByExecCommand2928289758") + filelock_test.go:193: fd 8 = os.Open("/tmp/TestLockNotDroppedByExecCommand3089883208") filelock_test.go:204: Lock(fd 8) is blocked (as expected) filelock_test.go:205: Unlock(fd 7) = asm_amd64.s:1695: Lock(fd 8) = filelock_test.go:207: Unlock(fd 8) = ---- PASS: TestLockNotDroppedByExecCommand (0.01s) +--- PASS: TestLockNotDroppedByExecCommand (0.04s) === CONT TestLockExcludesLock -=== CONT TestRLockExcludesOnlyLock -=== NAME TestLockExcludesLock - filelock_test.go:121: fd 7 = /tmp/TestLockExcludesLock1650448171 - filelock_test.go:124: fd 9 = os.Open("/tmp/TestLockExcludesLock1650448171") -=== NAME TestRLockExcludesOnlyLock - filelock_test.go:153: fd 8 = /tmp/TestRLockExcludesOnlyLock1659521859 -=== NAME TestLockExcludesLock + filelock_test.go:121: fd 7 = /tmp/TestLockExcludesLock3581944076 + filelock_test.go:124: fd 8 = os.Open("/tmp/TestLockExcludesLock3581944076") filelock_test.go:127: Lock(fd 7) = -=== NAME TestRLockExcludesOnlyLock - filelock_test.go:155: RLock(fd 8) = - filelock_test.go:157: fd 10 = os.Open("/tmp/TestRLockExcludesOnlyLock1659521859") - filelock_test.go:171: RLock(fd 10) = === CONT TestLockExcludesRLock -=== NAME TestRLockExcludesOnlyLock - filelock_test.go:175: fd 11 = os.Open("/tmp/TestRLockExcludesOnlyLock1659521859") +=== CONT TestRLockExcludesOnlyLock === NAME TestLockExcludesRLock - filelock_test.go:137: fd 12 = /tmp/TestLockExcludesRLock834333402 - filelock_test.go:140: fd 13 = os.Open("/tmp/TestLockExcludesRLock834333402") - filelock_test.go:143: Lock(fd 12) = -=== NAME TestLockExcludesLock - filelock_test.go:128: Lock(fd 9) is blocked (as expected) + filelock_test.go:137: fd 9 = /tmp/TestLockExcludesRLock3733486909 +=== NAME TestRLockExcludesOnlyLock + filelock_test.go:153: fd 10 = /tmp/TestRLockExcludesOnlyLock4268282509 === NAME TestLockExcludesRLock - filelock_test.go:144: RLock(fd 13) is blocked (as expected) -=== NAME TestLockExcludesLock - filelock_test.go:129: Unlock(fd 7) = + filelock_test.go:140: fd 11 = os.Open("/tmp/TestLockExcludesRLock3733486909") +=== NAME TestRLockExcludesOnlyLock + filelock_test.go:155: RLock(fd 10) = === NAME TestLockExcludesRLock - filelock_test.go:145: Unlock(fd 12) = + filelock_test.go:143: Lock(fd 9) = === NAME TestRLockExcludesOnlyLock - filelock_test.go:177: Lock(fd 11) is blocked (as expected) + filelock_test.go:157: fd 12 = os.Open("/tmp/TestRLockExcludesOnlyLock4268282509") + filelock_test.go:171: RLock(fd 12) = + filelock_test.go:175: fd 13 = os.Open("/tmp/TestRLockExcludesOnlyLock4268282509") === NAME TestLockExcludesLock - asm_amd64.s:1695: Lock(fd 9) = + filelock_test.go:128: Lock(fd 8) is blocked (as expected) + filelock_test.go:129: Unlock(fd 7) = === NAME TestLockExcludesRLock - asm_amd64.s:1695: RLock(fd 13) = + filelock_test.go:144: RLock(fd 11) is blocked (as expected) + filelock_test.go:145: Unlock(fd 9) = === NAME TestRLockExcludesOnlyLock - filelock_test.go:179: Unlock(fd 10) = + filelock_test.go:177: Lock(fd 13) is blocked (as expected) + filelock_test.go:179: Unlock(fd 12) = + filelock_test.go:181: Unlock(fd 10) = === NAME TestLockExcludesLock - filelock_test.go:131: Unlock(fd 9) = -=== NAME TestRLockExcludesOnlyLock - filelock_test.go:181: Unlock(fd 8) = -=== NAME TestLockExcludesRLock - filelock_test.go:147: Unlock(fd 13) = + asm_amd64.s:1695: Lock(fd 8) = + filelock_test.go:131: Unlock(fd 8) = === NAME TestRLockExcludesOnlyLock - asm_amd64.s:1695: Lock(fd 11) = - filelock_test.go:184: Unlock(fd 11) = ---- PASS: TestLockExcludesLock (0.01s) ---- PASS: TestLockExcludesRLock (0.01s) + asm_amd64.s:1695: Lock(fd 13) = + filelock_test.go:184: Unlock(fd 13) = +--- PASS: TestLockExcludesLock (0.02s) --- PASS: TestRLockExcludesOnlyLock (0.01s) +=== NAME TestLockExcludesRLock + asm_amd64.s:1695: RLock(fd 11) = + filelock_test.go:147: Unlock(fd 11) = +--- PASS: TestLockExcludesRLock (0.02s) PASS -ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.029s +ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.099s === RUN TestWork ---- PASS: TestWork (0.03s) +--- PASS: TestWork (0.02s) === RUN TestWorkParallel --- PASS: TestWorkParallel (0.00s) === RUN TestCache --- PASS: TestCache (0.00s) PASS -ok github.com/rogpeppe/go-internal/par 0.036s +ok github.com/rogpeppe/go-internal/par 0.072s === RUN TestCRLFInput === RUN TestCRLFInput/_ === RUN TestCRLFInput/_/script @@ -2778,7 +2805,7 @@ === RUN TestEnv --- PASS: TestEnv (0.00s) === RUN TestSetupFailure ---- PASS: TestSetupFailure (0.00s) +--- PASS: TestSetupFailure (0.02s) === RUN TestScripts === RUN TestScripts/big_diff === PAUSE TestScripts/big_diff @@ -2849,137 +2876,25 @@ === RUN TestScripts/wait === PAUSE TestScripts/wait === CONT TestScripts/big_diff -=== CONT TestScripts/wait === CONT TestScripts/readfile === CONT TestScripts/exec_path_change -=== CONT TestScripts/testscript_notfound -=== CONT TestScripts/testscript_update_script_expected_not_in_archive === CONT TestScripts/pty -=== CONT TestScripts/testscript_logging -=== CONT TestScripts/nothing - testscript.go:558: # Intentionally blank file, used to test that -testwork doesn't remove the work directory (0.000s) - PASS - +=== CONT TestScripts/commandstatus === CONT TestScripts/long_diff -=== CONT TestScripts/testscript_update_script -=== CONT TestScripts/command -=== CONT TestScripts/cmpenv - testscript.go:558: > env $=$ - > cmpenv file1 file2 - PASS - +=== CONT TestScripts/nothing === CONT TestScripts/testscript_stdout_stderr_error -=== CONT TestScripts/cmd_stdout_stderr -=== CONT TestScripts/hello -=== CONT TestScripts/interrupt -=== CONT TestScripts/setenv -=== CONT TestScripts/regexpquote -=== CONT TestScripts/testscript_duplicate_name -=== CONT TestScripts/exists +=== CONT TestScripts/wait === CONT TestScripts/values === CONT TestScripts/testscript_update_script_stderr +=== CONT TestScripts/testscript_update_script_quote +=== CONT TestScripts/testscript_update_script_expected_not_in_archive +=== CONT TestScripts/testscript_update_script_actual_is_file +=== CONT TestScripts/testscript_update_script +=== CONT TestScripts/cond === CONT TestScripts/evalsymlink -=== CONT TestScripts/execguard === CONT TestScripts/defer === CONT TestScripts/cpstdout -=== CONT TestScripts/commandstatus -=== CONT TestScripts/testscript_explicit_exec -=== CONT TestScripts/testscript_update_script_actual_is_file -=== NAME TestScripts/command - testscript.go:558: > printargs a b 'c d' - [stdout] - ["printargs" "a" "b" "c d"] - > stdout '\["printargs" "a" "b" "c d"\]\n' - PASS - -=== NAME TestScripts/testscript_notfound - testscript.go:558: # Check that unknown commands output a useful error message (0.000s) - > ! testscript notfound - [stdout] - > notexist - FAIL: $WORK/notfound/script.txt:1: unknown command "notexist" - - > stdout 'unknown command "notexist"' - > ! testscript negation - [stdout] - > !exists file - FAIL: $WORK/negation/script.txt:1: unknown command "!exists" (did you mean "! exists"?) - - > stdout 'unknown command "!exists" \(did you mean "! exists"\?\)' - > ! testscript misspelled - [stdout] - > exits file - FAIL: $WORK/misspelled/script.txt:1: unknown command "exits" (did you mean "exists"?) - - > stdout 'unknown command "exits" \(did you mean "exists"\?\)' - PASS - -=== NAME TestScripts/exists - testscript.go:558: > 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/stdin -=== NAME TestScripts/values - testscript.go:558: > test-values - PASS - -=== CONT TestScripts/setupfiles -=== CONT TestScripts/cond -=== CONT TestScripts/testscript_update_script_quote -=== NAME TestScripts/setenv - testscript.go:558: > setSpecialVal - > exists $SPECIALVAL.txt - > ensureSpecialVal - PASS - -=== NAME TestScripts/cond - testscript.go:558: # test that exactly one of gc and gccgo is set (0.000s) - > [gc] mkdir gc_true - > [gccgo] mkdir gccgo_true - > [gc] ! exists gccgo_true - > [!gc] exists gccgo_true - > [gccgo] ! exists gc_true - > [!gccgo] exists gc_true - # test that go version build tags are set (0.000s) - > [go1.1] mkdir go1.x - > [go2.1] mkdir go2.x - > exists go1.x - > ! exists go2.x - # unix should be true on Linux and MacOS, but not on Windows. - # Both platforms are tested on CI. (0.000s) - > [unix] mkdir unix_true - > [linux] exists unix_true - > [darwin] exists unix_true - > [windows] ! exists unix_true - PASS - -=== NAME TestScripts/setupfiles - testscript.go:558: # check that the Setup function saw the unarchived files, - # including the temp directory that's always created. (0.000s) - > setup-filenames .tmp a b - PASS - -=== NAME TestScripts/pty - testscript.go:558: > [!linux] [!darwin] skip - > [darwin] skip # https://go.dev/issue/61779 - > ttyin secretwords.txt - > terminalprompt - > ttyout 'magic words' - > ! stderr . - > ! stdout . - PASS - -=== NAME TestScripts/regexpquote - testscript.go:558: > env XXX='hello)' - > grep ^${XXX@R}$ file.txt - PASS - +=== CONT TestScripts/interrupt === NAME TestScripts/long_diff testscript.go:558: # Verify the behaviour of cmp in the case of a small diff between # two large files (0.000s) @@ -3001,7 +2916,7 @@ > env WORK=$WORK - PATH=/tmp/testscript-main2795824219/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3906991227/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -3014,136 +2929,12 @@ > cmpenv stdout stdout.golden PASS -=== NAME TestScripts/testscript_stdout_stderr_error - testscript.go:558: # Verify that stdout and stderr get set event when a user-builtin - # command aborts. Note that we need to assert against stdout - # because our meta testscript command sees only a single log. (0.000s) - > unquote scripts/testscript.txt - > ! testscript -v scripts - [stdout] - > printargs hello world - [stdout] - ["printargs" "hello" "world"] - > echoandexit 1 'this is stdout' 'this is stderr' - [stdout] - this is stdout - [stderr] - this is stderr - FAIL: $WORK/scripts/testscript.txt:2: told to exit with code 1 - - > cmpenv stdout stdout.golden - PASS - -=== NAME TestScripts/testscript_update_script_expected_not_in_archive - testscript.go:558: # Verify that comparing stdout against a file not in the archive does nothing (0.000s) - > unquote scripts/testscript.txt - > cp scripts/testscript.txt unchanged - > ! testscript -update scripts - [stdout] - > fprintargs stdout right - [stdout] - right - > cp file expect - > cmp stdout expect - diff stdout expect - --- stdout - +++ expect - @@ -1,1 +1,1 @@ - -right - +wrong - - FAIL: $WORK/scripts/testscript.txt:3: stdout and expect differ - - > cmp scripts/testscript.txt unchanged - PASS - -=== NAME TestScripts/testscript_duplicate_name - testscript.go:558: # Check that RequireUniqueNames works; - # it should reject txtar archives with duplicate names as defined by the host system. (0.000s) - > unquote scripts-normalized/testscript.txt - > testscript scripts-normalized - [stdout] - PASS - - > ! testscript -unique-names scripts-normalized - [stdout] - FAIL: $WORK/scripts-normalized/testscript.txt:0: dir/../file would overwrite $WORK/file (because RequireUniqueNames is enabled) - - > stdout '.* would overwrite .* \(because RequireUniqueNames is enabled\)' - PASS - -=== NAME TestScripts/execguard - testscript.go:558: > [exec:nosuchcommand] exec nosuchcommand - > [!exec:cat] stop - > exec cat foo - [stdout] - foo - > stdout 'foo\n' - PASS - -=== NAME TestScripts/testscript_update_script_stderr - testscript.go:558: > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript -update scripts - [stdout] - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt - PASS - -=== NAME TestScripts/defer - testscript.go:558: > testdefer - > testdefer - > testdefer - PASS - -=== NAME TestScripts/testscript_update_script_actual_is_file - testscript.go:558: > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript -update scripts - [stdout] - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt - PASS - -=== NAME TestScripts/stdin - testscript.go:558: > [!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.000s) - > exec cat hello.txt - [stdout] - hello - - > stdin stdout - > exec cat - [stdout] - hello - - > stdout hello - PASS - -=== NAME TestScripts/testscript_update_script_quote - testscript.go:558: > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript -update scripts - [stdout] - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt +=== CONT TestScripts/cmd_stdout_stderr +=== NAME TestScripts/nothing + testscript.go:558: # Intentionally blank file, used to test that -testwork doesn't remove the work directory (0.000s) PASS +=== CONT TestScripts/command === NAME TestScripts/big_diff testscript.go:558: # Verify the behaviour of cmp in the case of a diff between two # large files (with a large diff) (0.000s) @@ -5212,7 +5003,7 @@ > env WORK=$WORK - PATH=/tmp/testscript-main2795824219/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3906991227/bin:/usr/lib/go-1.22/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -5225,32 +5016,48 @@ > cmpenv stdout stdout.golden PASS -=== NAME TestScripts/hello - testscript.go:558: > [!exec:cat] stop - # hello world (0.000s) - > exec cat hello.text - [stdout] - hello world - > stdout 'hello world\n' - > ! stderr . +=== NAME TestScripts/values + testscript.go:558: > test-values PASS -=== NAME TestScripts/testscript_update_script - testscript.go:558: # Check that we support both txt and txtar extensions. (0.000s) - > unquote scripts/testscript.txt - > unquote testscript-new.txt - > cp scripts/testscript.txt scripts/testscript2.txtar - > testscript -update scripts +=== CONT TestScripts/testscript_duplicate_name + testscript.go:558: # Check that RequireUniqueNames works; + # it should reject txtar archives with duplicate names as defined by the host system. (0.000s) + > unquote scripts-normalized/testscript.txt + > testscript scripts-normalized [stdout] PASS - $WORK/scripts/testscript.txt updated + + > ! testscript -unique-names scripts-normalized + [stdout] + FAIL: $WORK/scripts-normalized/testscript.txt:0: dir/../file would overwrite $WORK/file (because RequireUniqueNames is enabled) + + > stdout '.* would overwrite .* \(because RequireUniqueNames is enabled\)' PASS - $WORK/scripts/testscript2.txtar updated - > cmp scripts/testscript.txt testscript-new.txt - > cmp scripts/testscript2.txtar testscript-new.txt +=== CONT TestScripts/testscript_notfound +=== NAME TestScripts/testscript_stdout_stderr_error + testscript.go:558: # Verify that stdout and stderr get set event when a user-builtin + # command aborts. Note that we need to assert against stdout + # because our meta testscript command sees only a single log. (0.000s) + > unquote scripts/testscript.txt + > ! testscript -v scripts + [stdout] + > printargs hello world + [stdout] + ["printargs" "hello" "world"] + > echoandexit 1 'this is stdout' 'this is stderr' + [stdout] + this is stdout + [stderr] + this is stderr + FAIL: $WORK/scripts/testscript.txt:2: told to exit with code 1 + + > cmpenv stdout stdout.golden PASS +=== CONT TestScripts/testscript_logging +=== CONT TestScripts/cmpenv === NAME TestScripts/readfile testscript.go:558: > fprintargs stdout stdout [stdout] @@ -5263,6 +5070,75 @@ > testreadfile x/somefile PASS +=== CONT TestScripts/testscript_explicit_exec +=== NAME TestScripts/pty + testscript.go:558: > [!linux] [!darwin] skip + > [darwin] skip # https://go.dev/issue/61779 + > ttyin secretwords.txt + > terminalprompt + > ttyout 'magic words' + > ! stderr . + > ! stdout . + PASS + +=== CONT TestScripts/setupfiles + testscript.go:558: # check that the Setup function saw the unarchived files, + # including the temp directory that's always created. (0.000s) + > setup-filenames .tmp a b + PASS + +=== CONT TestScripts/stdin +=== NAME TestScripts/testscript_update_script_stderr + testscript.go:558: > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript -update scripts + [stdout] + PASS + $WORK/scripts/testscript.txt updated + + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== CONT TestScripts/setenv +=== NAME TestScripts/testscript_update_script_actual_is_file + testscript.go:558: > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript -update scripts + [stdout] + PASS + $WORK/scripts/testscript.txt updated + + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== NAME TestScripts/defer + testscript.go:558: > testdefer + > testdefer + > testdefer + PASS + +=== NAME TestScripts/setenv + testscript.go:558: > setSpecialVal + > exists $SPECIALVAL.txt + > ensureSpecialVal + PASS + +=== NAME TestScripts/cmpenv + testscript.go:558: > env $=$ + > cmpenv file1 file2 + PASS + +=== CONT TestScripts/hello +=== CONT TestScripts/execguard +=== CONT TestScripts/regexpquote +=== NAME TestScripts/commandstatus + testscript.go:558: > ! status 1 + [exit status 1] + > ! status 2 + [exit status 2] + > status 0 + PASS + === NAME TestScripts/cpstdout testscript.go:558: > [!exec:cat] stop # hello world (0.000s) @@ -5278,6 +5154,187 @@ > cmp new hello.text PASS +=== NAME TestScripts/testscript_update_script_quote + testscript.go:558: > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript -update scripts + [stdout] + PASS + $WORK/scripts/testscript.txt updated + + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== NAME TestScripts/testscript_update_script_expected_not_in_archive + testscript.go:558: # Verify that comparing stdout against a file not in the archive does nothing (0.000s) + > unquote scripts/testscript.txt + > cp scripts/testscript.txt unchanged + > ! testscript -update scripts + [stdout] + > fprintargs stdout right + [stdout] + right + > cp file expect + > cmp stdout expect + diff stdout expect + --- stdout + +++ expect + @@ -1,1 +1,1 @@ + -right + +wrong + + FAIL: $WORK/scripts/testscript.txt:3: stdout and expect differ + + > cmp scripts/testscript.txt unchanged + PASS + +=== NAME TestScripts/command + testscript.go:558: > printargs a b 'c d' + [stdout] + ["printargs" "a" "b" "c d"] + > stdout '\["printargs" "a" "b" "c d"\]\n' + PASS + +=== CONT TestScripts/exists +=== NAME TestScripts/cond + testscript.go:558: # test that exactly one of gc and gccgo is set (0.000s) + > [gc] mkdir gc_true + > [gccgo] mkdir gccgo_true + > [gc] ! exists gccgo_true + > [!gc] exists gccgo_true + > [gccgo] ! exists gc_true + > [!gccgo] exists gc_true + # test that go version build tags are set (0.000s) + > [go1.1] mkdir go1.x + > [go2.1] mkdir go2.x + > exists go1.x + > ! exists go2.x + # unix should be true on Linux and MacOS, but not on Windows. + # Both platforms are tested on CI. (0.000s) + > [unix] mkdir unix_true + > [linux] exists unix_true + > [darwin] exists unix_true + > [windows] ! exists unix_true + PASS + +=== NAME TestScripts/interrupt + testscript.go:558: > [windows] skip + > signalcatcher & + > waitfile catchsignal + > interrupt + > wait + [background] signalcatcher: exit status 0 + [stdout] + caught interrupt + > stdout 'caught interrupt' + PASS + +=== NAME TestScripts/testscript_notfound + testscript.go:558: # Check that unknown commands output a useful error message (0.000s) + > ! testscript notfound + [stdout] + > notexist + FAIL: $WORK/notfound/script.txt:1: unknown command "notexist" + + > stdout 'unknown command "notexist"' + > ! testscript negation + [stdout] + > !exists file + FAIL: $WORK/negation/script.txt:1: unknown command "!exists" (did you mean "! exists"?) + + > stdout 'unknown command "!exists" \(did you mean "! exists"\?\)' + > ! testscript misspelled + [stdout] + > exits file + FAIL: $WORK/misspelled/script.txt:1: unknown command "exits" (did you mean "exists"?) + + > stdout 'unknown command "exits" \(did you mean "exists"\?\)' + PASS + +=== NAME TestScripts/exists + testscript.go:558: > 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 + +=== NAME TestScripts/execguard + testscript.go:558: > [exec:nosuchcommand] exec nosuchcommand + > [!exec:cat] stop + > exec cat foo + [stdout] + foo + > stdout 'foo\n' + PASS + +=== NAME TestScripts/hello + testscript.go:558: > [!exec:cat] stop + # hello world (0.000s) + > exec cat hello.text + [stdout] + hello world + > stdout 'hello world\n' + > ! stderr . + PASS + +=== NAME TestScripts/regexpquote + testscript.go:558: > env XXX='hello)' + > grep ^${XXX@R}$ file.txt + PASS + +=== NAME TestScripts/testscript_explicit_exec + testscript.go:558: # Check that RequireExplicitExec works; + # it should reject `fprintargs` in favor of `exec fprintargs`, + # but it shouldn't complain about `some-param-cmd`, + # as that Params.Cmds entry won't work via `exec some-param-cmd`. (0.000s) + > unquote scripts-implicit/testscript.txt + > unquote scripts-explicit/testscript.txt + > testscript scripts-implicit + [stdout] + PASS + + > testscript scripts-explicit + [stdout] + PASS + + > ! testscript -explicit-exec scripts-implicit + [stdout] + > fprintargs stdout right + FAIL: $WORK/scripts-implicit/testscript.txt:1: use 'exec fprintargs' rather than 'fprintargs' (because RequireExplicitExec is enabled) + + > testscript -explicit-exec scripts-explicit + [stdout] + PASS + + PASS + +=== NAME TestScripts/stdin + testscript.go:558: > [!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.000s) + > exec cat hello.txt + [stdout] + hello + + > stdin stdout + > exec cat + [stdout] + hello + + > stdout hello + PASS + === NAME TestScripts/evalsymlink testscript.go:558: # 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. @@ -5293,24 +5350,20 @@ > stdout ^$WORK$ PASS -=== NAME TestScripts/interrupt - testscript.go:558: > [windows] skip - > signalcatcher & - > waitfile catchsignal - > interrupt - > wait - [background] signalcatcher: exit status 0 +=== NAME TestScripts/testscript_update_script + testscript.go:558: # Check that we support both txt and txtar extensions. (0.000s) + > unquote scripts/testscript.txt + > unquote testscript-new.txt + > cp scripts/testscript.txt scripts/testscript2.txtar + > testscript -update scripts [stdout] - caught interrupt - > stdout 'caught interrupt' PASS + $WORK/scripts/testscript.txt updated + PASS + $WORK/scripts/testscript2.txtar updated -=== NAME TestScripts/commandstatus - testscript.go:558: > ! status 1 - [exit status 1] - > ! status 2 - [exit status 2] - > status 0 + > cmp scripts/testscript.txt testscript-new.txt + > cmp scripts/testscript2.txtar testscript-new.txt PASS === NAME TestScripts/wait @@ -5427,32 +5480,6 @@ > stderr 'hello stderr from echoandexit' PASS -=== NAME TestScripts/testscript_explicit_exec - testscript.go:558: # Check that RequireExplicitExec works; - # it should reject `fprintargs` in favor of `exec fprintargs`, - # but it shouldn't complain about `some-param-cmd`, - # as that Params.Cmds entry won't work via `exec some-param-cmd`. (0.000s) - > unquote scripts-implicit/testscript.txt - > unquote scripts-explicit/testscript.txt - > testscript scripts-implicit - [stdout] - PASS - - > testscript scripts-explicit - [stdout] - PASS - - > ! testscript -explicit-exec scripts-implicit - [stdout] - > fprintargs stdout right - FAIL: $WORK/scripts-implicit/testscript.txt:1: use 'exec fprintargs' rather than 'fprintargs' (because RequireExplicitExec is enabled) - - > testscript -explicit-exec scripts-explicit - [stdout] - PASS - - PASS - === NAME TestScripts/testscript_logging testscript.go:558: # non-verbose, non-continue (0.000s) > ! testscript scripts @@ -5568,48 +5595,48 @@ PASS --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/nothing (0.00s) - --- PASS: TestScripts/cmpenv (0.00s) - --- PASS: TestScripts/command (0.01s) - --- PASS: TestScripts/exists (0.00s) - --- PASS: TestScripts/values (0.00s) - --- PASS: TestScripts/testscript_notfound (0.01s) - --- PASS: TestScripts/setenv (0.01s) + --- PASS: TestScripts/long_diff (0.10s) + --- PASS: TestScripts/nothing (0.10s) + --- PASS: TestScripts/big_diff (0.12s) + --- PASS: TestScripts/values (0.01s) + --- PASS: TestScripts/testscript_duplicate_name (0.02s) + --- PASS: TestScripts/testscript_stdout_stderr_error (0.13s) + --- PASS: TestScripts/readfile (0.15s) + --- PASS: TestScripts/pty (0.15s) --- PASS: TestScripts/setupfiles (0.00s) - --- PASS: TestScripts/cond (0.00s) - --- PASS: TestScripts/pty (0.01s) - --- PASS: TestScripts/regexpquote (0.06s) - --- PASS: TestScripts/testscript_stdout_stderr_error (0.06s) - --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.06s) - --- PASS: TestScripts/long_diff (0.06s) - --- PASS: TestScripts/testscript_duplicate_name (0.06s) - --- PASS: TestScripts/execguard (0.01s) - --- PASS: TestScripts/defer (0.00s) --- PASS: TestScripts/testscript_update_script_stderr (0.06s) - --- PASS: TestScripts/testscript_update_script_actual_is_file (0.06s) - --- PASS: TestScripts/testscript_update_script_quote (0.06s) - --- PASS: TestScripts/stdin (0.06s) - --- PASS: TestScripts/hello (0.06s) - --- PASS: TestScripts/cpstdout (0.01s) - --- PASS: TestScripts/testscript_update_script (0.07s) - --- PASS: TestScripts/evalsymlink (0.06s) - --- PASS: TestScripts/readfile (0.07s) - --- PASS: TestScripts/big_diff (0.07s) - --- PASS: TestScripts/commandstatus (0.01s) - --- PASS: TestScripts/wait (0.08s) - --- PASS: TestScripts/interrupt (0.07s) - --- PASS: TestScripts/cmd_stdout_stderr (0.08s) - --- PASS: TestScripts/testscript_explicit_exec (0.02s) - --- PASS: TestScripts/testscript_logging (0.14s) - --- PASS: TestScripts/exec_path_change (5.57s) + --- PASS: TestScripts/defer (0.05s) + --- PASS: TestScripts/cmpenv (0.05s) + --- PASS: TestScripts/setenv (0.06s) + --- PASS: TestScripts/testscript_update_script_actual_is_file (0.08s) + --- PASS: TestScripts/commandstatus (0.27s) + --- PASS: TestScripts/cpstdout (0.11s) + --- PASS: TestScripts/testscript_update_script_quote (0.13s) + --- PASS: TestScripts/cond (0.15s) + --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.15s) + --- PASS: TestScripts/interrupt (0.14s) + --- PASS: TestScripts/testscript_notfound (0.14s) + --- PASS: TestScripts/exists (0.02s) + --- PASS: TestScripts/command (0.16s) + --- PASS: TestScripts/hello (0.16s) + --- PASS: TestScripts/regexpquote (0.15s) + --- PASS: TestScripts/execguard (0.15s) + --- PASS: TestScripts/testscript_explicit_exec (0.23s) + --- PASS: TestScripts/stdin (0.27s) + --- PASS: TestScripts/evalsymlink (0.27s) + --- PASS: TestScripts/testscript_update_script (0.29s) + --- PASS: TestScripts/wait (0.35s) + --- PASS: TestScripts/cmd_stdout_stderr (0.37s) + --- PASS: TestScripts/testscript_logging (0.90s) + --- PASS: TestScripts/exec_path_change (20.63s) === RUN TestTestwork ---- PASS: TestTestwork (1.39s) +--- PASS: TestTestwork (7.25s) === RUN TestWorkdirRoot === RUN TestWorkdirRoot/run_tests === RUN TestWorkdirRoot/run_tests/nothing === PAUSE TestWorkdirRoot/run_tests/nothing === CONT TestWorkdirRoot/run_tests/nothing - testscript.go:558: WORK=/tmp/3225262332/script-nothing + testscript.go:558: WORK=/tmp/4006668034/script-nothing # Intentionally empty test script; used to test Params.WorkdirRoot (0.000s) PASS @@ -5621,7 +5648,7 @@ === RUN TestUNIX2DOS --- PASS: TestUNIX2DOS (0.00s) PASS -ok github.com/rogpeppe/go-internal/testscript 6.970s +ok github.com/rogpeppe/go-internal/testscript 28.024s === RUN Test === RUN Test/basic === RUN Test/basicCRLF @@ -5649,7 +5676,7 @@ --- PASS: TestQuote/bad_data (0.00s) --- PASS: TestQuote/no_final_newline (0.00s) PASS -ok github.com/rogpeppe/go-internal/txtar 0.009s +ok github.com/rogpeppe/go-internal/txtar 0.030s patch -R -p1 -i debian/0001-Allow-TestSimple-cover-to-PASS.patch patching file _build/src/github.com/rogpeppe/go-internal/testscript/testscript.go Hunk #1 succeeded at 1155 (offset 57 lines). @@ -5671,9 +5698,9 @@ dh_fixperms -O--builddirectory=_build -O--buildsystem=golang dh_missing -O--builddirectory=_build -O--buildsystem=golang dh_strip -a -O--builddirectory=_build -O--buildsystem=golang -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/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-c +dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-addmod dh_makeshlibs -a -O--builddirectory=_build -O--buildsystem=golang dh_shlibdeps -a -O--builddirectory=_build -O--buildsystem=golang dh_installdeb -O--builddirectory=_build -O--buildsystem=golang @@ -5683,9 +5710,9 @@ dpkg-gencontrol: warning: package go-internal: substitution variable ${misc:Built-Using} unused, but is defined dh_md5sums -O--builddirectory=_build -O--buildsystem=golang dh_builddeb -O--builddirectory=_build -O--buildsystem=golang -dpkg-deb: building package 'go-internal' in '../go-internal_1.12.0-3_amd64.deb'. -dpkg-deb: building package 'go-internal-dbgsym' in '../go-internal-dbgsym_1.12.0-3_amd64.deb'. dpkg-deb: building package 'golang-github-rogpeppe-go-internal-dev' in '../golang-github-rogpeppe-go-internal-dev_1.12.0-3_all.deb'. +dpkg-deb: building package 'go-internal-dbgsym' in '../go-internal-dbgsym_1.12.0-3_amd64.deb'. +dpkg-deb: building package 'go-internal' in '../go-internal_1.12.0-3_amd64.deb'. dpkg-genbuildinfo --build=binary -O../golang-github-rogpeppe-go-internal_1.12.0-3_amd64.buildinfo dpkg-genchanges --build=binary -O../golang-github-rogpeppe-go-internal_1.12.0-3_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -5693,12 +5720,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/3685169/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3685169/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/1292567 and its subdirectories -I: Current time: Wed Jul 2 20:12:32 -12 2025 -I: pbuilder-time-stamp: 1751530352 +I: removing directory /srv/workspace/pbuilder/3685169 and its subdirectories +I: Current time: Fri May 31 15:55:48 +14 2024 +I: pbuilder-time-stamp: 1717120548