Diff of the two buildlogs: -- --- b1/build.log 2025-10-21 22:53:01.518283896 +0000 +++ b2/build.log 2025-10-21 22:56:48.746567041 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Oct 21 10:50:07 -12 2025 -I: pbuilder-time-stamp: 1761087007 +I: Current time: Tue Nov 24 19:16:03 +14 2026 +I: pbuilder-time-stamp: 1795497363 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/forky-reproducible-base.tgz] I: copying local configuration @@ -22,52 +22,84 @@ dpkg-source: info: unpacking golang-github-rogpeppe-go-internal_1.14.1-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2148559/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1058582/tmp/hooks/D01_modify_environment starting +debug: Running on infom02-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 Nov 24 05:16 /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/1058582/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1058582/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=12 ' - DISTRIBUTION='forky' - 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]="3" [2]="3" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.3.3(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=16 ' + DIRSTACK=() + DISTRIBUTION=forky + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='14aeee55931a44fb8c7b60b7cd72fa15' - 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='2148559' - PS1='# ' - PS2='> ' + INVOCATION_ID=8f671565adb847db8fe3c3dda2d72f1a + 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=1058582 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.2vmSPiFA/pbuilderrc_3Ws0 --distribution forky --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.2vmSPiFA/b1 --logfile b1/build.log golang-github-rogpeppe-go-internal_1.14.1-1.dsc' - SUDO_GID='109' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' + 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.2vmSPiFA/pbuilderrc_YG9k --distribution forky --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.2vmSPiFA/b2 --logfile b2/build.log golang-github-rogpeppe-go-internal_1.14.1-1.dsc' + SUDO_GID=109 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' I: uname -a - Linux infom01-amd64 6.12.48+deb13-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2148559/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1058582/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -161,7 +193,7 @@ Get: 44 http://deb.debian.org/debian forky/main amd64 golang-golang-x-net-dev all 1:0.27.0-2 [904 kB] Get: 45 http://deb.debian.org/debian forky/main amd64 golang-golang-x-sync-dev all 0.7.0-1 [19.0 kB] Get: 46 http://deb.debian.org/debian forky/main amd64 golang-golang-x-tools-dev all 1:0.25.0+ds-1 [1608 kB] -Fetched 72.2 MB in 1s (65.7 MB/s) +Fetched 72.2 MB in 2s (46.2 MB/s) Preconfiguring packages ... 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 ... 19898 files and directories currently installed.) @@ -367,7 +399,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.14.1/ && 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.14.1-1_source.changes +I: user script /srv/workspace/pbuilder/1058582/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/1058582/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.14.1/ && 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.14.1-1_source.changes dpkg-buildpackage: info: source package golang-github-rogpeppe-go-internal dpkg-buildpackage: info: source version 1.14.1-1 dpkg-buildpackage: info: source distribution unstable @@ -385,40 +421,40 @@ 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 12 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 install -trimpath -v -p 16 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/goos internal/byteorder internal/coverage/rtcov -internal/goarch +internal/godebugs internal/profilerecord internal/unsafeheader -internal/asan -internal/goos -internal/godebugs -internal/msan +internal/goarch +math/bits internal/goexperiment +unicode +internal/asan internal/cpu -internal/runtime/atomic -internal/runtime/math -internal/abi +internal/msan internal/runtime/syscall sync/atomic -math/bits -internal/chacha8rand -unicode -internal/runtime/sys unicode/utf8 crypto/internal/fips140/alias -crypto/internal/fips140deps/byteorder -crypto/internal/fips140/subtle +internal/runtime/atomic internal/itoa cmp +internal/runtime/math +internal/abi +internal/runtime/sys crypto/internal/boring/sig log/internal +internal/chacha8rand +crypto/internal/fips140deps/byteorder encoding +crypto/internal/fips140/subtle unicode/utf16 internal/nettrace -container/list vendor/golang.org/x/crypto/cryptobyte/asn1 +container/list vendor/golang.org/x/crypto/internal/alias github.com/rogpeppe/go-internal/internal/misspell internal/goversion @@ -426,180 +462,180 @@ internal/syslist github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll -internal/runtime/exithook crypto/internal/fips140deps/cpu internal/bytealg math +internal/runtime/exithook internal/race internal/sync internal/runtime/maps internal/stringslite runtime -crypto/subtle +internal/reflectlite iter weak -internal/reflectlite +crypto/subtle sync -slices maps +slices internal/bisect -internal/testlog internal/singleflight +internal/testlog unique -errors -sort runtime/cgo +errors +io internal/godebug -internal/oserror -strconv path -io -golang.org/x/mod/semver vendor/golang.org/x/net/dns/dnsmessage +internal/oserror math/rand/v2 +strconv +sort syscall -hash bytes -crypto/internal/fips140deps/godebug +hash strings crypto/internal/randutil internal/saferio -github.com/rogpeppe/go-internal/semver -math/rand hash/crc32 +math/rand +crypto/internal/fips140deps/godebug +golang.org/x/mod/semver crypto -net/netip reflect -github.com/rogpeppe/go-internal/par +net/netip +github.com/rogpeppe/go-internal/semver vendor/golang.org/x/text/transform -crypto/internal/impl +github.com/rogpeppe/go-internal/par crypto/internal/fips140 -net/http/internal/ascii +crypto/internal/impl bufio +net/http/internal/ascii go/build/constraint regexp/syntax -crypto/internal/fips140/sha3 crypto/internal/fips140/sha256 -crypto/tls/internal/fips140tls +crypto/internal/fips140/sha3 crypto/internal/fips140/sha512 +crypto/tls/internal/fips140tls crypto/sha3 -crypto/internal/fips140/hmac -crypto/internal/fips140/check -crypto/internal/fips140hash -internal/syscall/unix internal/syscall/execenv time +internal/syscall/unix +regexp +crypto/internal/fips140/hmac +crypto/internal/fips140hash +crypto/internal/fips140/check crypto/internal/fips140/aes -crypto/internal/fips140/nistec/fiat crypto/internal/fips140/bigmod -crypto/internal/fips140/edwards25519/field crypto/internal/fips140/hkdf +crypto/internal/fips140/edwards25519/field +crypto/internal/fips140/nistec/fiat crypto/internal/fips140/tls12 -regexp crypto/internal/fips140/tls13 crypto/internal/fips140/edwards25519 context io/fs internal/poll -crypto/internal/fips140/nistec -internal/filepathlite internal/fmtsort github.com/rogpeppe/go-internal/fmtsort encoding/binary +internal/filepathlite +crypto/internal/fips140/nistec os encoding/base64 vendor/golang.org/x/crypto/internal/poly1305 +encoding/pem crypto/internal/sysrand github.com/rogpeppe/go-internal/lockedfile/internal/filelock -golang.org/x/mod/internal/lazyregexp -path/filepath fmt -vendor/golang.org/x/sys/cpu +path/filepath internal/lazyregexp -github.com/rogpeppe/go-internal/robustio +golang.org/x/mod/internal/lazyregexp internal/sysinfo +github.com/rogpeppe/go-internal/robustio +vendor/golang.org/x/sys/cpu crypto/internal/entropy -encoding/pem crypto/internal/fips140/drbg github.com/rogpeppe/go-internal/renameio os/exec crypto/internal/fips140only -crypto/internal/fips140/aes/gcm -crypto/internal/fips140/ecdsa crypto/internal/fips140/ecdh crypto/internal/fips140/ed25519 +crypto/internal/fips140/ecdsa +crypto/internal/fips140/aes/gcm crypto/internal/fips140/mlkem crypto/internal/fips140/rsa -crypto/md5 -crypto/rc4 internal/goroot github.com/rogpeppe/go-internal/internal/os/execpath +crypto/rc4 +crypto/md5 encoding/hex +github.com/rogpeppe/go-internal/lockedfile +log flag compress/flate -encoding/json golang.org/x/mod/module -github.com/rogpeppe/go-internal/lockedfile -log golang.org/x/tools/txtar +encoding/json math/big net/url -vendor/golang.org/x/text/unicode/bidi -vendor/golang.org/x/text/unicode/norm vendor/golang.org/x/net/http2/hpack +vendor/golang.org/x/text/unicode/norm mime mime/quotedprintable crypto/cipher -archive/zip -compress/gzip -vendor/golang.org/x/text/secure/bidirule net/http/internal +vendor/golang.org/x/text/unicode/bidi runtime/debug runtime/trace -crypto/internal/boring -crypto/des -vendor/golang.org/x/crypto/chacha20 -vendor/golang.org/x/net/idna github.com/rogpeppe/go-internal/diff github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/testscript/internal/pty +github.com/rogpeppe/go-internal/txtar +net +go/token +go/doc/comment +crypto/internal/boring +crypto/des +vendor/golang.org/x/crypto/chacha20 +internal/buildcfg +archive/zip +compress/gzip +vendor/golang.org/x/crypto/chacha20poly1305 crypto/sha256 crypto/aes crypto/ecdh crypto/sha512 crypto/hmac -vendor/golang.org/x/crypto/chacha20poly1305 crypto/sha1 +vendor/golang.org/x/text/secure/bidirule +testing github.com/rogpeppe/go-internal/cache -github.com/rogpeppe/go-internal/txtar -go/token -go/doc/comment -internal/buildcfg +go/scanner github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c -go/scanner github.com/rogpeppe/go-internal/cmd/txtar-x -golang.org/x/mod/sumdb/dirhash -go/ast golang.org/x/mod/modfile -testing github.com/rogpeppe/go-internal/module +go/ast +vendor/golang.org/x/net/idna crypto/rand +encoding/asn1 crypto/elliptic crypto/internal/boring/bbig -encoding/asn1 -crypto/ed25519 -crypto/rsa crypto/dsa -github.com/rogpeppe/go-internal/dirhash +crypto/ed25519 crypto/internal/hpke -net -crypto/x509/pkix -vendor/golang.org/x/crypto/cryptobyte +crypto/rsa +golang.org/x/mod/sumdb/dirhash github.com/rogpeppe/go-internal/modfile +github.com/rogpeppe/go-internal/dirhash go/doc go/parser github.com/rogpeppe/go-internal/testenv +vendor/golang.org/x/crypto/cryptobyte +crypto/x509/pkix crypto/ecdsa go/build github.com/rogpeppe/go-internal/testscript @@ -613,34 +649,34 @@ 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.14.1' 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 1194 (offset 96 lines). GOPROXY= dh_auto_test - cd _build && go test -vet=off -v -p 12 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 16 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.08s) +--- PASS: TestBasic (0.13s) === RUN TestGrowth ---- PASS: TestGrowth (3.38s) +--- PASS: TestGrowth (3.87s) === 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.16s) +--- PASS: TestVerifyPanic (0.03s) === RUN TestCacheTrim ---- PASS: TestCacheTrim (0.06s) +--- PASS: TestCacheTrim (0.17s) === RUN TestHash --- PASS: TestHash (0.00s) === RUN TestHashFile --- PASS: TestHashFile (0.00s) PASS -ok github.com/rogpeppe/go-internal/cache 3.678s +ok github.com/rogpeppe/go-internal/cache 4.204s === RUN TestScripts === RUN TestScripts/continue === PAUSE TestScripts/continue @@ -670,19 +706,20 @@ === PAUSE TestScripts/work === CONT TestScripts/continue === CONT TestScripts/nogo +=== CONT TestScripts/error === CONT TestScripts/multi === CONT TestScripts/skip -=== CONT TestScripts/simple === CONT TestScripts/env_var_no_go -=== CONT TestScripts/noproxy -=== CONT TestScripts/env_var_with_go === CONT TestScripts/help -=== CONT TestScripts/env_values +=== CONT TestScripts/env_var_with_go === CONT TestScripts/work -=== CONT TestScripts/error +=== CONT TestScripts/simple +=== CONT TestScripts/env_values +=== CONT TestScripts/noproxy +=== CONT TestScripts/update === NAME TestScripts/nogo testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -705,12 +742,12 @@ # 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.016s) + # contains the command names, so use a special builtin instead. (0.018s) > dropgofrompath > ! testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -730,7 +767,7 @@ === NAME TestScripts/help testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -750,7 +787,7 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # Simply sanity check on help output (0.005s) + # Simply sanity check on help output (0.040s) > ! testscript -help [stderr] The testscript command runs github.com/rogpeppe/go-internal/testscript scripts @@ -880,10 +917,9 @@ > stderr 'Examples' PASS -=== CONT TestScripts/update === NAME TestScripts/env_var_no_go testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -905,18 +941,18 @@ # Test passing environment variables to scripts with no go command on PATH # - # This is the counterpart to env_var_with_go.txt (0.006s) + # This is the counterpart to env_var_with_go.txt (0.000s) > unquote noproxy.txt > unquote withproxy.txt > dropgofrompath > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= - # no GOPROXY, no pass-through, no proxy (0.008s) + # no GOPROXY, no pass-through, no proxy (0.016s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -937,11 +973,11 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.009s) + # no GOPROXY, no pass-through, with proxy (0.038s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -950,7 +986,7 @@ :=: $=$ exe= - GOPROXY=http://127.0.0.1:35619/mod + GOPROXY=http://127.0.0.1:41981/mod GONOSUMDB=* > env BANANA @@ -958,17 +994,17 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:35619/mod + GOPROXY=http://127.0.0.1:41981/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.011s) + # no GOPROXY, with pass-through, no proxy (0.012s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -992,11 +1028,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.010s) + # no GOPROXY, with pass-through, with proxy (0.013s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1022,11 +1058,11 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.018s) + # with GOPROXY, no pass-through, no proxy (0.012s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1047,11 +1083,11 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # with GOPROXY, no pass-through, with proxy (0.009s) + # with GOPROXY, no pass-through, with proxy (0.031s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1060,7 +1096,7 @@ :=: $=$ exe= - GOPROXY=http://127.0.0.1:36505/mod + GOPROXY=http://127.0.0.1:44893/mod GONOSUMDB=* > env BANANA @@ -1068,17 +1104,17 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:36505/mod + GOPROXY=http://127.0.0.1:44893/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.004s) + # with GOPROXY, with pass-through, no proxy (0.010s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1102,11 +1138,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, with pass-through, with proxy (0.005s) + # with GOPROXY, with pass-through, with proxy (0.103s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1135,7 +1171,7 @@ === NAME TestScripts/continue testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1159,7 +1195,7 @@ > unquote file.txt # Running with continue, the testscript command itself # should fail, but we should see the results of executing - # both commands. (0.223s) + # both commands. (0.483s) > ! testscript -continue file.txt [stdout] > grep banana in @@ -1176,9 +1212,9 @@ > stdout 'grep apple in' PASS -=== NAME TestScripts/work +=== NAME TestScripts/multi testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1198,19 +1234,24 @@ 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.210s) - > unquote file.txt dir/file.txt - > testscript -v -work file.txt dir/file.txt + # Check that all scripts are executed even when one fails. (0.487s) + > ! testscript a.txt b.txt [stdout] - temporary work directory: $WORK/.tmp/go-test-script3753141272/script-file - WORK=$WORK/.tmp/go-test-script3753141272/script-file - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + > exec false + [exit status 1] + FAIL: a.txt:1: unexpected command failure + > exec false + [exit status 1] + FAIL: b.txt:2: unexpected command failure + [stderr] + failed run + [exit status 1] + > cmp stdout want-stdout + PASS + +=== NAME TestScripts/work + testscript.go:584: WORK=$WORK + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1227,12 +1268,22 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.14.1/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.24 + GOINTERNALMODPATH=. + GONOSUMDB=* - > exec true - PASS - temporary work directory: $WORK/.tmp/go-test-script3753141272/script-file#1 - WORK=$WORK/.tmp/go-test-script3753141272/script-file#1 - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + # 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.471s) + > unquote file.txt dir/file.txt + > testscript -v -work file.txt dir/file.txt + [stdout] + temporary work directory: $WORK/.tmp/go-test-script3486599538/script-file + WORK=$WORK/.tmp/go-test-script3486599538/script-file + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1252,14 +1303,9 @@ > exec true PASS - > stdout '^temporary work directory: \Q'$WORK'\E[/\\]\.tmp[/\\]' - > expandone $WORK/.tmp/go-test-script*/script-file/foo - > expandone $WORK/.tmp/go-test-script*/script-file#1/bar - PASS - -=== NAME TestScripts/multi - testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + temporary work directory: $WORK/.tmp/go-test-script3486599538/script-file#1 + WORK=$WORK/.tmp/go-test-script3486599538/script-file#1 + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1276,27 +1322,17 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.14.1/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.24 - GOINTERNALMODPATH=. - GONOSUMDB=* - # Check that all scripts are executed even when one fails. (0.227s) - > ! testscript a.txt b.txt - [stdout] - > exec false - [exit status 1] - FAIL: a.txt:1: unexpected command failure - > exec false - [exit status 1] - FAIL: b.txt:2: unexpected command failure - [stderr] - failed run - [exit status 1] - > cmp stdout want-stdout + > exec true + PASS + > stdout '^temporary work directory: \Q'$WORK'\E[/\\]\.tmp[/\\]' + > expandone $WORK/.tmp/go-test-script*/script-file/foo + > expandone $WORK/.tmp/go-test-script*/script-file#1/bar PASS === NAME TestScripts/skip testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1316,12 +1352,12 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # should support skip (0.227s) + # should support skip (0.487s) > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1348,50 +1384,9 @@ > ! stderr .+ PASS -=== NAME TestScripts/update - testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/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.24 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.14.1/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.24 - 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.012s) - > 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.193s) - > testscript -u - in.txt - [stdout] - PASS - PASS - in.txt updated - > cmp in.txt res.txt - PASS - === NAME TestScripts/noproxy testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1412,13 +1407,13 @@ GONOSUMDB=* # With no .gomodproxy supporting files, we use the GOPROXY from - # the environment. (0.239s) + # the environment. (0.477s) > env GOPROXY=0.1.2.3 > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1461,7 +1456,7 @@ GOEXPERIMENT='' GOFIPS140='off' GOFLAGS='' - GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build1415538393=/tmp/go-build -gno-record-gcc-switches' + GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build2674650955=/tmp/go-build -gno-record-gcc-switches' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' @@ -1490,9 +1485,9 @@ PASS PASS -=== NAME TestScripts/simple +=== NAME TestScripts/update testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1512,57 +1507,28 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # With .gomodproxy supporting files, any GOPROXY from the - # environment should be overridden by the test proxy. (0.264s) - > env GOPROXY=0.1.2.3 - > unquote file.txt - > testscript -v file.txt - [stdout] - WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/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.24 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.14.1/_build/go-build - GOPROXY=http://127.0.0.1:46709/mod - goversion=1.24 - GONOSUMDB=* - - > go get -d fruit.com + # should support the -update flag (0.000s) + > unquote in.txt res.txt + # Should be an error to use -u with only stdin (0.039s) + > stdin in.txt + > ! testscript -u [stderr] - go: -d flag is deprecated. -d=true is a no-op - go: downloading fruit.com v1.0.0 - - > go list -m - [stdout] - example.com/mod - - > stdout 'example.com/mod' - > go list fruit.com/... + 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.466s) + > testscript -u - in.txt [stdout] - fruit.com/coretest - fruit.com/fruit - - > stdout 'fruit.com/fruit' - > stdout 'fruit.com/coretest' PASS - > stdout 'example.com/mod' - > ! stderr .+ + PASS + in.txt updated + > cmp in.txt res.txt PASS === NAME TestScripts/error testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1584,12 +1550,12 @@ # should support skip (0.000s) > unquote file.txt - # stdin (0.213s) + # stdin (0.481s) > stdin file.txt > ! testscript -v [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1614,11 +1580,11 @@ failed run [exit status 1] > stdout 'FAIL: :1: unexpected command failure' - # file-based (0.043s) + # file-based (0.064s) > ! testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1647,7 +1613,7 @@ === NAME TestScripts/env_values testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1667,17 +1633,17 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # Test that passing env values, e.g. ENV1=val, works (0.006s) + # Test that passing env values, e.g. ENV1=val, works (0.000s) > unquote test.txt > env BLAH1= > env BLAH2=junk - # Normal operation (0.206s) + # Normal operation (0.467s) > 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.045s) + # of testscript, which has no concept of stderr. (0.067s) > ! testscript -e BLAH1=rubbish -e BLAH2 -e WORK test.txt [stdout] FAIL: test.txt:0: cannot override WORK variable @@ -1687,9 +1653,79 @@ > stdout 'cannot override WORK variable' PASS +=== NAME TestScripts/simple + testscript.go:584: WORK=$WORK + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/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.24 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.14.1/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.24 + GOINTERNALMODPATH=. + GONOSUMDB=* + + # With .gomodproxy supporting files, any GOPROXY from the + # environment should be overridden by the test proxy. (0.539s) + > env GOPROXY=0.1.2.3 + > unquote file.txt + > testscript -v file.txt + [stdout] + WORK=$WORK + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/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.24 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.14.1/_build/go-build + GOPROXY=http://127.0.0.1:43267/mod + goversion=1.24 + GONOSUMDB=* + + > go get -d fruit.com + [stderr] + go: -d flag is deprecated. -d=true is a no-op + go: downloading fruit.com v1.0.0 + + > go list -m + [stdout] + example.com/mod + + > stdout 'example.com/mod' + > go list fruit.com/... + [stdout] + fruit.com/coretest + fruit.com/fruit + + > stdout 'fruit.com/fruit' + > stdout 'fruit.com/coretest' + PASS + > stdout 'example.com/mod' + > ! stderr .+ + PASS + === NAME TestScripts/env_var_with_go testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1715,14 +1751,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.008s) + # This is the counterpart to env_var_no_go.txt (0.000s) > unquote noproxy.txt > unquote withproxy.txt - # Baseline (0.196s) + # Baseline (0.465s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1754,11 +1790,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.064s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1787,11 +1823,11 @@ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=https://proxy.golang.org,direct$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.037s) + # no GOPROXY, no pass-through, with proxy (0.055s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1806,7 +1842,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.14.1/_build/go-build - GOPROXY=http://127.0.0.1:43241/mod + GOPROXY=http://127.0.0.1:39271/mod goversion=1.24 GONOSUMDB=* @@ -1815,17 +1851,17 @@ > env GOPATH GOPATH=$WORK/.gopath > env GOPROXY - GOPROXY=http://127.0.0.1:43241/mod + GOPROXY=http://127.0.0.1:39271/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.046s) + # no GOPROXY, with pass-through, no proxy (0.049s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1855,11 +1891,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.097s) + # no GOPROXY, with pass-through, with proxy (0.059s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1891,11 +1927,11 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.036s) + # with GOPROXY, no pass-through, no proxy (0.045s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1924,11 +1960,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.056s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1943,7 +1979,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.14.1/_build/go-build - GOPROXY=http://127.0.0.1:38385/mod + GOPROXY=http://127.0.0.1:38697/mod goversion=1.24 GONOSUMDB=* @@ -1952,17 +1988,17 @@ > env GOPATH GOPATH=$WORK/.gopath > env GOPROXY - GOPROXY=http://127.0.0.1:38385/mod + GOPROXY=http://127.0.0.1:38697/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.040s) + # with GOPROXY, with pass-through, no proxy (0.051s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1992,11 +2028,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, with pass-through, with proxy (0.088s) + # with GOPROXY, with pass-through, with proxy (0.082s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2352699990/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1435134589/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2029,22 +2065,22 @@ > ! stderr .+ PASS ---- PASS: TestScripts (0.03s) - --- PASS: TestScripts/help (0.02s) +--- PASS: TestScripts (0.06s) --- PASS: TestScripts/nogo (0.02s) - --- PASS: TestScripts/env_var_no_go (0.10s) - --- PASS: TestScripts/continue (0.23s) - --- PASS: TestScripts/work (0.22s) - --- PASS: TestScripts/skip (0.23s) - --- PASS: TestScripts/multi (0.23s) - --- PASS: TestScripts/update (0.21s) - --- PASS: TestScripts/noproxy (0.24s) - --- PASS: TestScripts/simple (0.26s) - --- PASS: TestScripts/error (0.27s) - --- PASS: TestScripts/env_values (0.27s) - --- PASS: TestScripts/env_var_with_go (0.64s) + --- PASS: TestScripts/help (0.06s) + --- PASS: TestScripts/env_var_no_go (0.24s) + --- PASS: TestScripts/multi (0.49s) + --- PASS: TestScripts/noproxy (0.52s) + --- PASS: TestScripts/continue (0.52s) + --- PASS: TestScripts/skip (0.52s) + --- PASS: TestScripts/work (0.52s) + --- PASS: TestScripts/update (0.52s) + --- PASS: TestScripts/error (0.55s) + --- PASS: TestScripts/env_values (0.55s) + --- PASS: TestScripts/simple (0.55s) + --- PASS: TestScripts/env_var_with_go (0.94s) PASS -ok github.com/rogpeppe/go-internal/cmd/testscript 0.681s +ok github.com/rogpeppe/go-internal/cmd/testscript 1.009s === RUN TestScripts === RUN TestScripts/encode === PAUSE TestScripts/encode @@ -2055,11 +2091,11 @@ === CONT TestScripts/encode === CONT TestScripts/txtar-addmod-self === CONT TestScripts/to_stdout -2025/10/21 22:52:34 go proxy: no archive github.com v0.0.0-20171119174359-809beceb2371 -2025/10/21 22:52:34 go proxy: no archive github.com/shurcooL v0.0.0-20171119174359-809beceb2371 +2026/11/24 05:19:21 go proxy: no archive github.com/shurcooL v0.0.0-20171119174359-809beceb2371 +2026/11/24 05:19:21 go proxy: no archive github.com v0.0.0-20171119174359-809beceb2371 === NAME TestScripts/encode testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main4089576596/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2769223555/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2074,7 +2110,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.14.1/_build/go-build - GOPROXY=http://127.0.0.1:36461/mod + GOPROXY=http://127.0.0.1:33035/mod goversion=1.24 GONOSUMDB=* @@ -2087,7 +2123,7 @@ === NAME TestScripts/to_stdout testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main4089576596/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2769223555/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2102,7 +2138,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.14.1/_build/go-build - GOPROXY=http://127.0.0.1:36461/mod + GOPROXY=http://127.0.0.1:33035/mod goversion=1.24 GONOSUMDB=* @@ -2129,7 +2165,7 @@ === NAME TestScripts/txtar-addmod-self testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main4089576596/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2769223555/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2144,7 +2180,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.14.1/_build/go-build - GOPROXY=http://127.0.0.1:36461/mod + GOPROXY=http://127.0.0.1:33035/mod goversion=1.24 GONOSUMDB=* @@ -2158,12 +2194,12 @@ > grep '-- foobar --' $WORK/out/github.com_gobin-testrepos_simple-main_v1.0.0.txtar PASS ---- PASS: TestScripts (0.09s) - --- PASS: TestScripts/encode (0.22s) - --- PASS: TestScripts/to_stdout (0.23s) - --- PASS: TestScripts/txtar-addmod-self (0.42s) +--- PASS: TestScripts (0.04s) + --- PASS: TestScripts/encode (0.05s) + --- PASS: TestScripts/to_stdout (0.07s) + --- PASS: TestScripts/txtar-addmod-self (0.12s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 0.524s +ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 0.178s === RUN TestScripts === RUN TestScripts/all === PAUSE TestScripts/all @@ -2174,12 +2210,11 @@ === RUN TestScripts/txtar-savedir-self === PAUSE TestScripts/txtar-savedir-self === CONT TestScripts/all -=== CONT TestScripts/txtar-savedir-self === CONT TestScripts/quote +=== CONT TestScripts/txtar-savedir-self === CONT TestScripts/needquote -=== NAME TestScripts/quote testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main953101191/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1858395302/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2191,19 +2226,19 @@ > unquote blah/withsep > unquote expect - > txtar-c -quote blah + > txtar-c blah [stdout] - unquote withsep - -- withsep -- - >-- separator -- - >foo - > ! stderr .+ + -- nosep -- + bar + [stderr] + txtar-c: blah/withsep: ignoring file with txtar marker in + > stderr 'txtar-c: blah.withsep: ignoring file with txtar marker in' > cmp stdout expect PASS === NAME TestScripts/txtar-savedir-self testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main953101191/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1858395302/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2233,9 +2268,9 @@ > cmp stdout expect PASS -=== NAME TestScripts/needquote +=== NAME TestScripts/quote testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main953101191/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1858395302/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2247,19 +2282,19 @@ > unquote blah/withsep > unquote expect - > txtar-c blah + > txtar-c -quote 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' + unquote withsep + -- withsep -- + >-- separator -- + >foo + > ! stderr .+ > cmp stdout expect PASS === NAME TestScripts/all testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main953101191/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1858395302/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2271,7 +2306,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.020s) > txtar-c blah [stdout] -- go.mod -- @@ -2287,7 +2322,7 @@ } > ! stderr .+ > cmp stdout expect-no-all - # With the -a flag, it should include them. (0.002s) + # With the -a flag, it should include them. (0.007s) > txtar-c -a blah [stdout] -- .foo/foo -- @@ -2310,12 +2345,12 @@ PASS --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/quote (0.01s) - --- PASS: TestScripts/txtar-savedir-self (0.01s) - --- PASS: TestScripts/all (0.01s) --- PASS: TestScripts/needquote (0.02s) + --- PASS: TestScripts/txtar-savedir-self (0.02s) + --- PASS: TestScripts/quote (0.03s) + --- PASS: TestScripts/all (0.03s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.020s +ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.037s ? github.com/rogpeppe/go-internal/cmd/txtar-goproxy [no test files] === RUN TestScripts === RUN TestScripts/extract-dir @@ -2327,12 +2362,12 @@ === RUN TestScripts/extract === PAUSE TestScripts/extract === CONT TestScripts/extract-dir -=== CONT TestScripts/extract-out-of-bounds -=== CONT TestScripts/extract-stdin === CONT TestScripts/extract -=== NAME TestScripts/extract-dir +=== CONT TestScripts/extract-stdin +=== CONT TestScripts/extract-out-of-bounds +=== NAME TestScripts/extract testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main89975058/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2082461417/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2343,14 +2378,14 @@ exe= > unquote file.txtar - > txtar-x -C x/y file.txtar - > cmp x/y/foo expect/foo - > cmp x/y/a/b/bar expect/a/b/bar + > txtar-x file.txtar + > cmp foo expect/foo + > cmp a/b/bar expect/a/b/bar PASS -=== NAME TestScripts/extract +=== NAME TestScripts/extract-dir testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main89975058/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2082461417/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2361,14 +2396,14 @@ exe= > unquote file.txtar - > txtar-x file.txtar - > cmp foo expect/foo - > cmp a/b/bar expect/a/b/bar + > txtar-x -C x/y file.txtar + > cmp x/y/foo expect/foo + > cmp x/y/a/b/bar expect/a/b/bar PASS === NAME TestScripts/extract-stdin testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main89975058/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2082461417/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2387,7 +2422,7 @@ === NAME TestScripts/extract-out-of-bounds testscript.go:584: WORK=$WORK - PATH=/tmp/testscript-main89975058/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2082461417/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2411,12 +2446,12 @@ PASS --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/extract-dir (0.09s) - --- PASS: TestScripts/extract-stdin (0.09s) - --- PASS: TestScripts/extract (0.09s) - --- PASS: TestScripts/extract-out-of-bounds (0.09s) + --- PASS: TestScripts/extract (0.01s) + --- PASS: TestScripts/extract-dir (0.02s) + --- PASS: TestScripts/extract-out-of-bounds (0.02s) + --- PASS: TestScripts/extract-stdin (0.02s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.097s +ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.032s === RUN Test === RUN Test/allnew.txt === RUN Test/allold.txt @@ -2444,7 +2479,7 @@ --- PASS: Test/start.txt (0.00s) --- PASS: Test/triv.txt (0.00s) PASS -ok github.com/rogpeppe/go-internal/diff 0.004s +ok github.com/rogpeppe/go-internal/diff 0.007s ? github.com/rogpeppe/go-internal/dirhash [no test files] === RUN TestCompare --- PASS: TestCompare (0.00s) @@ -2453,13 +2488,13 @@ === RUN TestInterface --- PASS: TestInterface (0.00s) PASS -ok github.com/rogpeppe/go-internal/fmtsort 0.002s +ok github.com/rogpeppe/go-internal/fmtsort 0.006s === RUN TestScripts === RUN TestScripts/list === PAUSE TestScripts/list === CONT TestScripts/list testscript.go:584: WORK=$WORK - PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2474,7 +2509,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.14.1/_build/go-build - GOPROXY=http://127.0.0.1:36939/mod + GOPROXY=http://127.0.0.1:45443/mod goversion=1.24 GONOSUMDB=* @@ -2499,7 +2534,7 @@ # 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.007s) > go mod tidy [stderr] go: warning: "all" matched no packages @@ -2507,11 +2542,11 @@ PASS --- PASS: TestScripts (0.04s) - --- PASS: TestScripts/list (0.04s) + --- PASS: TestScripts/list (0.05s) PASS -ok github.com/rogpeppe/go-internal/goproxytest 0.088s +ok github.com/rogpeppe/go-internal/goproxytest 0.104s === RUN TestInitGoEnv ---- PASS: TestInitGoEnv (0.04s) +--- PASS: TestInitGoEnv (0.05s) === RUN TestSimple === RUN TestSimple/cover === PAUSE TestSimple/cover @@ -2523,7 +2558,7 @@ === CONT TestSimple/version === CONT TestSimple/env testscript.go:584: WORK=$WORK - PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2543,7 +2578,7 @@ GOINTERNAL_MODULE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.14.1/_build/src/github.com/rogpeppe/go-internal # GOPATH and GOMODCACHE are not shared with the host, - # but GOCACHE is. (0.014s) + # but GOCACHE is. (0.018s) > go env [stdout] AR='ar' @@ -2569,7 +2604,7 @@ GOEXPERIMENT='' GOFIPS140='off' GOFLAGS='' - GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build3436673726=/tmp/go-build -gno-record-gcc-switches' + GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build4039570676=/tmp/go-build -gno-record-gcc-switches' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' @@ -2600,7 +2635,7 @@ === NAME TestSimple/version testscript.go:584: WORK=$WORK - PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2631,7 +2666,7 @@ === NAME TestSimple/cover testscript.go:1202: testscript.go:584: WORK=$WORK - PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2652,25 +2687,25 @@ > unquote scripts/exec.txt # The module uses testscript itself. - # Use the checked out module, based on where the test binary ran. (0.242s) + # Use the checked out module, based on where the test binary ran. (0.133s) > 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.21.0: Get "https://proxy.golang.org/golang.org/x/mod/@v/v0.21.0.mod": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:58456->[::1]:53: read: connection refused + golang.org/x/mod@v0.21.0: Get "https://proxy.golang.org/golang.org/x/mod/@v/v0.21.0.mod": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:44354->[::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.03s) +--- PASS: TestSimple (0.05s) --- PASS: TestSimple/env (0.02s) - --- PASS: TestSimple/version (0.12s) - --- SKIP: TestSimple/cover (0.24s) + --- PASS: TestSimple/version (0.04s) + --- SKIP: TestSimple/cover (0.14s) PASS -ok github.com/rogpeppe/go-internal/gotooltest 0.321s +ok github.com/rogpeppe/go-internal/gotooltest 0.241s === RUN TestReadImports --- PASS: TestReadImports (0.00s) === RUN TestReadComments @@ -2729,7 +2764,7 @@ === RUN TestSpuriousEDEADLK --- PASS: TestSpuriousEDEADLK (0.02s) === RUN TestTransform ---- PASS: TestTransform (0.90s) +--- PASS: TestTransform (0.76s) === CONT TestMutexExcludes === CONT TestCanLockExistingFile === CONT TestReadWaitsForLock @@ -2740,19 +2775,16 @@ === NAME TestReadWaitsForLock lockedfile_test.go:134: WriteString("part 1\n") = lockedfile_test.go:156: WriteString("part 2\n") = -=== NAME TestMutexExcludes - lockedfile_test.go:107: unlock() -=== NAME TestReadWaitsForLock lockedfile_test.go:146: Read(_) = "part 1\npart 2\n" === NAME TestMutexExcludes + lockedfile_test.go:107: unlock() lockedfile_test.go:102: unlock2, _ := mu2.Lock() ---- PASS: TestCanLockExistingFile (0.01s) -=== NAME TestMutexExcludes lockedfile_test.go:103: unlock2() ---- PASS: TestMutexExcludes (0.02s) ---- PASS: TestReadWaitsForLock (0.29s) +--- PASS: TestCanLockExistingFile (0.01s) +--- PASS: TestMutexExcludes (0.01s) +--- PASS: TestReadWaitsForLock (0.02s) PASS -ok github.com/rogpeppe/go-internal/lockedfile 1.217s +ok github.com/rogpeppe/go-internal/lockedfile 0.815s === RUN TestLockExcludesLock === PAUSE TestLockExcludesLock === RUN TestLockExcludesRLock @@ -2760,61 +2792,64 @@ === RUN TestRLockExcludesOnlyLock === PAUSE TestRLockExcludesOnlyLock === RUN TestLockNotDroppedByExecCommand - filelock_test.go:188: fd 6 = /tmp/TestLockNotDroppedByExecCommand1355726100 + filelock_test.go:188: fd 6 = /tmp/TestLockNotDroppedByExecCommand1940315718 filelock_test.go:191: Lock(fd 6) = - filelock_test.go:193: fd 7 = os.Open("/tmp/TestLockNotDroppedByExecCommand1355726100") + filelock_test.go:193: fd 7 = os.Open("/tmp/TestLockNotDroppedByExecCommand1940315718") filelock_test.go:204: Lock(fd 7) is blocked (as expected) filelock_test.go:205: Unlock(fd 6) = asm_amd64.s:1700: Lock(fd 7) = filelock_test.go:207: Unlock(fd 7) = --- PASS: TestLockNotDroppedByExecCommand (0.01s) === CONT TestLockExcludesLock - filelock_test.go:121: fd 6 = /tmp/TestLockExcludesLock3859567078 - filelock_test.go:124: fd 7 = os.Open("/tmp/TestLockExcludesLock3859567078") + filelock_test.go:121: fd 6 = /tmp/TestLockExcludesLock1189423422 + filelock_test.go:124: fd 7 = os.Open("/tmp/TestLockExcludesLock1189423422") filelock_test.go:127: Lock(fd 6) = === CONT TestRLockExcludesOnlyLock - filelock_test.go:153: fd 8 = /tmp/TestRLockExcludesOnlyLock1392816542 - filelock_test.go:155: RLock(fd 8) = - filelock_test.go:157: fd 9 = os.Open("/tmp/TestRLockExcludesOnlyLock1392816542") - filelock_test.go:171: RLock(fd 9) = - filelock_test.go:175: fd 10 = os.Open("/tmp/TestRLockExcludesOnlyLock1392816542") + filelock_test.go:153: fd 8 = /tmp/TestRLockExcludesOnlyLock3501106441 === CONT TestLockExcludesRLock - filelock_test.go:137: fd 11 = /tmp/TestLockExcludesRLock1656844533 - filelock_test.go:140: fd 12 = os.Open("/tmp/TestLockExcludesRLock1656844533") - filelock_test.go:143: Lock(fd 11) = +=== NAME TestRLockExcludesOnlyLock + filelock_test.go:155: RLock(fd 8) = + filelock_test.go:157: fd 10 = os.Open("/tmp/TestRLockExcludesOnlyLock3501106441") +=== NAME TestLockExcludesRLock + filelock_test.go:137: fd 9 = /tmp/TestLockExcludesRLock3683651902 + filelock_test.go:140: fd 11 = os.Open("/tmp/TestLockExcludesRLock3683651902") + filelock_test.go:143: Lock(fd 9) = +=== NAME TestRLockExcludesOnlyLock + filelock_test.go:171: RLock(fd 10) = + filelock_test.go:175: fd 12 = os.Open("/tmp/TestRLockExcludesOnlyLock3501106441") + filelock_test.go:177: Lock(fd 12) is blocked (as expected) + filelock_test.go:179: Unlock(fd 10) = + filelock_test.go:181: Unlock(fd 8) = +=== NAME TestLockExcludesRLock + filelock_test.go:144: RLock(fd 11) is blocked (as expected) + filelock_test.go:145: Unlock(fd 9) = === NAME TestLockExcludesLock filelock_test.go:128: Lock(fd 7) is blocked (as expected) filelock_test.go:129: Unlock(fd 6) = +=== NAME TestLockExcludesRLock + asm_amd64.s:1700: RLock(fd 11) = + filelock_test.go:147: Unlock(fd 11) = === NAME TestRLockExcludesOnlyLock - filelock_test.go:177: Lock(fd 10) is blocked (as expected) - filelock_test.go:179: Unlock(fd 9) = - filelock_test.go:181: Unlock(fd 8) = + asm_amd64.s:1700: Lock(fd 12) = + filelock_test.go:184: Unlock(fd 12) = === NAME TestLockExcludesLock asm_amd64.s:1700: Lock(fd 7) = filelock_test.go:131: Unlock(fd 7) = -=== NAME TestRLockExcludesOnlyLock - asm_amd64.s:1700: Lock(fd 10) = - filelock_test.go:184: Unlock(fd 10) = ---- PASS: TestRLockExcludesOnlyLock (0.01s) +--- PASS: TestLockExcludesRLock (0.01s) --- PASS: TestLockExcludesLock (0.01s) -=== NAME TestLockExcludesRLock - filelock_test.go:144: RLock(fd 12) is blocked (as expected) - filelock_test.go:145: Unlock(fd 11) = - asm_amd64.s:1700: RLock(fd 12) = - filelock_test.go:147: Unlock(fd 12) = ---- PASS: TestLockExcludesRLock (0.02s) +--- PASS: TestRLockExcludesOnlyLock (0.01s) PASS ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.034s ? github.com/rogpeppe/go-internal/modfile [no test files] ? github.com/rogpeppe/go-internal/module [no test files] === RUN TestWork ---- PASS: TestWork (0.01s) +--- 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.018s +ok github.com/rogpeppe/go-internal/par 0.025s ? 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] @@ -2827,9 +2862,9 @@ testscript.go:584: > exists output.txt PASS ---- PASS: TestCRLFInput (0.00s) +--- PASS: TestCRLFInput (0.01s) --- PASS: TestCRLFInput/_ (0.00s) - --- PASS: TestCRLFInput/_/script (0.00s) + --- PASS: TestCRLFInput/_/script (0.01s) === RUN TestEnv --- PASS: TestEnv (0.00s) === RUN TestSetupFailure @@ -2914,33 +2949,37 @@ === RUN TestScripts/wait === PAUSE TestScripts/wait === CONT TestScripts/big_diff -=== CONT TestScripts/pty -=== CONT TestScripts/testscript_notfound -=== CONT TestScripts/nothing -=== CONT TestScripts/long_diff -=== CONT TestScripts/kill_unnamed -=== CONT TestScripts/kill -=== CONT TestScripts/interrupt_implicit -=== CONT TestScripts/interrupt -=== CONT TestScripts/hello +=== CONT TestScripts/setenv === CONT TestScripts/exists === CONT TestScripts/execguard -=== NAME TestScripts/pty - testscript.go:584: > [!linux] [!darwin] skip - > [darwin] skip # https://go.dev/issue/61779 - > ttyin secretwords.txt - > terminalprompt - > ttyout 'magic words' - > ! stderr . - > ! stdout . +=== NAME TestScripts/setenv + testscript.go:584: > setSpecialVal + > exists $SPECIALVAL.txt + > ensureSpecialVal PASS -=== NAME TestScripts/nothing - testscript.go:584: # Intentionally blank file, used to test that -testwork doesn't remove the work directory (0.000s) +=== CONT TestScripts/long_diff +=== 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/testscript_stdout_stderr_error +=== CONT TestScripts/testscript_notfound +=== CONT TestScripts/testscript_logging +=== CONT TestScripts/testscript_explicit_files +=== CONT TestScripts/testscript_explicit_exec +=== NAME TestScripts/execguard + testscript.go:584: > [exec:nosuchcommand] exec nosuchcommand + > [!exec:cat] stop + > exec cat foo + [stdout] + foo + > stdout 'foo\n' PASS -=== CONT TestScripts/exec_path_change -=== CONT TestScripts/evalsymlink === NAME TestScripts/exists testscript.go:584: > chmod 444 foo_r > exists foo @@ -2951,6 +2990,80 @@ > exists -readonly foo_r PASS +=== CONT TestScripts/testscript_duplicate_name +=== NAME TestScripts/wait + testscript.go:584: > [!exec:echo] skip + > [!exec:false] skip + # TODO: the '\n' below doesn't work on Windows on Github Actions, which does + # have coreutils like "echo" installed. Perhaps they emit CRLF? (0.000s) + > [windows] skip + > exec echo foo + [stdout] + foo + > stdout foo + > exec echo foo & + > exec echo bar & + > ! exec false & + # Starting a background process should clear previous output. (0.000s) + > ! stdout foo + # Wait should set the output to the concatenated outputs of the background + # programs, in the order in which they were started. (0.000s) + > wait + [background] echo foo: exit status 0 + [stdout] + foo + [background] echo bar: exit status 0 + [stdout] + bar + [background] false: exit status 1 + > stdout 'foo\nbar' + > exec echo bg1 &b1& + > exec echo bg2 &b2& + > exec echo bg3 &b3& + > exec echo bg4 &b4& + > wait b3 + [stdout] + bg3 + > stdout bg3 + > wait b2 + [stdout] + bg2 + > stdout bg2 + > wait + [background] echo bg1: exit status 0 + [stdout] + bg1 + [background] echo bg4: exit status 0 + [stdout] + bg4 + > stdout 'bg1\nbg4' + # We should be able to start several background processes and wait for them + # individually. + # The end of the test should interrupt or kill any remaining background + # programs. (0.000s) + > [!exec:sleep] skip + > ! exec sleep 86400 & + [background] sleep 86400: signal: interrupt + PASS + +=== CONT TestScripts/stdin +=== CONT TestScripts/setupfiles + testscript.go:584: # 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/values + testscript.go:584: > test-values + PASS + +=== CONT TestScripts/readfile +=== CONT TestScripts/regexpquote + testscript.go:584: > env XXX='hello)' + > grep ^${XXX@R}$ file.txt + PASS + +=== CONT TestScripts/pty === NAME TestScripts/long_diff testscript.go:584: # Verify the behaviour of cmp in the case of a small diff between # two large files (0.000s) @@ -2973,7 +3086,7 @@ > env WORK=$WORK - PATH=/tmp/testscript-main2143175170/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3547297711/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2986,90 +3099,49 @@ > cmpenv stdout stdout.golden PASS -=== CONT TestScripts/defer -=== NAME TestScripts/kill - testscript.go:584: > [!exec:sleep] skip - # This test depends on sleep exiting with a non-success status when being - # terminated by an interrupt (kill on Windows) signal. (0.000s) - > ! exec sleep 10 &test_sleep& - # Set a timeout. If the kill below fails, this sleep will have terminated - # before the test exits and so the test will fail when it completes. (0.000s) - > ! exec sleep 5 & - > kill -KILL test_sleep - > wait test_sleep - [background] sleep 5: signal: interrupt - PASS - -=== NAME TestScripts/hello - testscript.go:584: > [!exec:cat] stop - # hello world (0.000s) - > exec cat hello.text +=== NAME TestScripts/testscript_duplicate_name + testscript.go:584: # 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] - hello world - > stdout 'hello world\n' - > ! stderr . + ** RUN testscript ** PASS -=== NAME TestScripts/execguard - testscript.go:584: > [exec:nosuchcommand] exec nosuchcommand - > [!exec:cat] stop - > exec cat foo + > ! testscript -unique-names scripts-normalized [stdout] - foo - > stdout 'foo\n' - PASS + ** RUN testscript ** + FAIL: $WORK/scripts-normalized/testscript.txt:0: dir/../file would overwrite $WORK/file (because RequireUniqueNames is enabled) -=== NAME TestScripts/kill_unnamed - testscript.go:584: > [!exec:sleep] skip - # This test depends on sleep exiting with a non-success status when being - # terminated by an interrupt (kill on Windows) signal. (0.000s) - > ! exec sleep 10 & - > ! exec sleep 10 & - # Set a timeout. If the kill below fails, this sleep will have terminated - # before the test exits and so the test will fail when it completes. (0.000s) - > ! exec sleep 5 & - > kill -KILL - > wait - [background] sleep 10: signal: killed - [background] sleep 10: signal: killed - [background] sleep 5: signal: killed + > stdout '.* would overwrite .* \(because RequireUniqueNames is enabled\)' PASS -=== NAME TestScripts/evalsymlink - testscript.go:584: # If ioutil.TempDir returns a sym linked dir (default behaviour in macOS for example) the - # matcher will have problems with external programs that uses the real path. - # This script tests that $WORK is matched in a consistent way (also see #79). (0.000s) - > [windows] skip - > exec pwd +=== CONT TestScripts/command +=== CONT TestScripts/cond +=== NAME TestScripts/testscript_update_script_expected_not_in_archive + testscript.go:584: # 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] - $WORK - > stdout ^$WORK$ - > exec pwd -P + ** RUN testscript ** + > fprintargs stdout right [stdout] - $WORK - > stdout ^$WORK$ - PASS + right + > cp file expect + > cmp stdout expect + diff stdout expect + --- stdout + +++ expect + @@ -1,1 +1,1 @@ + -right + +wrong -=== CONT TestScripts/custom_cd -=== NAME TestScripts/defer - testscript.go:584: > testdefer - > testdefer - > testdefer - PASS + FAIL: $WORK/scripts/testscript.txt:3: stdout and expect differ -=== CONT TestScripts/cpstdout -=== CONT TestScripts/cond -=== NAME TestScripts/custom_cd - testscript.go:584: # Verify that a custom command can chdir. (0.000s) - > mkChdir foo - > exists $WORK/foo - # Current directory is not $WORK. (0.000s) - > ! exists foo + > cmp scripts/testscript.txt unchanged PASS -=== CONT TestScripts/commandstatus -=== CONT TestScripts/command -=== CONT TestScripts/cmpenv === NAME TestScripts/cond testscript.go:584: # test that exactly one of gc and gccgo is set (0.000s) > [gc] mkdir gc_true @@ -3091,92 +3163,181 @@ > [windows] ! exists unix_true PASS -=== NAME TestScripts/cmpenv - testscript.go:584: > env $=$ - > cmpenv file1 file2 +=== CONT TestScripts/commandstatus +=== NAME TestScripts/testscript_explicit_files + testscript.go:584: # Check that we can pass an explicit set of files to be tested. (0.000s) + > ! testscript -files foo.txtar x/bar.txtar y/bar.txtar 'y/bar#1.txtar' + [stdout] + ** RUN foo ** + PASS + ** RUN bar ** + PASS + ** RUN bar#1 ** + > echoandexit 1 '' 'bar#1 failure' + [stderr] + bar#1 failure + FAIL: $WORK/y/bar.txtar:1: told to exit with code 1 + ** RUN bar#1#1 ** + > echoandexit 1 '' 'bar#1#1 failure' + [stderr] + bar#1#1 failure + FAIL: $WORK/y/bar#1.txtar:1: told to exit with code 1 + + > cmpenv stdout expect-stdout PASS -=== CONT TestScripts/cmd_stdout_stderr -=== CONT TestScripts/values -=== NAME TestScripts/testscript_notfound - testscript.go:584: # Check that unknown commands output a useful error message (0.000s) - > ! testscript notfound +=== NAME TestScripts/testscript_update_script_quote + testscript.go:584: > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript -update scripts [stdout] - ** RUN script ** - > notexist - FAIL: $WORK/notfound/script.txt:1: unknown command "notexist" + ** RUN testscript ** + PASS + $WORK/scripts/testscript.txt updated - > stdout 'unknown command "notexist"' - > ! testscript negation + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== CONT TestScripts/nothing + testscript.go:584: # Intentionally blank file, used to test that -testwork doesn't remove the work directory (0.000s) + PASS + +=== CONT TestScripts/evalsymlink +=== NAME TestScripts/command + testscript.go:584: > printargs a b 'c d' [stdout] - ** RUN script ** - > !exists file - FAIL: $WORK/negation/script.txt:1: unknown command "!exists" (did you mean "! exists"?) + ["printargs" "a" "b" "c d"] + > stdout '\["printargs" "a" "b" "c d"\]\n' + PASS - > stdout 'unknown command "!exists" \(did you mean "! exists"\?\)' - > ! testscript misspelled +=== CONT TestScripts/exec_path_change +=== NAME TestScripts/evalsymlink + testscript.go:584: # If ioutil.TempDir returns a sym linked dir (default behaviour in macOS for example) the + # matcher will have problems with external programs that uses the real path. + # This script tests that $WORK is matched in a consistent way (also see #79). (0.000s) + > [windows] skip + > exec pwd [stdout] - ** RUN script ** - > exits file - FAIL: $WORK/misspelled/script.txt:1: unknown command "exits" (did you mean "exists"?) + $WORK + > stdout ^$WORK$ + > exec pwd -P + [stdout] + $WORK + > stdout ^$WORK$ + PASS - > stdout 'unknown command "exits" \(did you mean "exists"\?\)' +=== NAME TestScripts/pty + testscript.go:584: > [!linux] [!darwin] skip + > [darwin] skip # https://go.dev/issue/61779 + > ttyin secretwords.txt + > terminalprompt + > ttyout 'magic words' + > ! stderr . + > ! stdout . PASS -=== NAME TestScripts/values - testscript.go:584: > test-values +=== NAME TestScripts/stdin + testscript.go:584: > [!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/cpstdout - testscript.go:584: > [!exec:cat] stop - # hello world (0.000s) - > exec cat hello.text +=== NAME TestScripts/commandstatus + testscript.go:584: > ! status 1 + [exit status 1] + > ! status 2 + [exit status 2] + > status 0 + PASS + +=== NAME TestScripts/readfile + testscript.go:584: > fprintargs stdout stdout [stdout] - hello world - > cp stdout got - > cmp got hello.text - > ! cmp got different.text - > exists got - > mv got new - > ! exists got - > cmp new hello.text + stdout + > testreadfile stdout + > fprintargs stderr stderr + [stderr] + stderr + > testreadfile stderr + > testreadfile x/somefile PASS -=== CONT TestScripts/wait -=== CONT TestScripts/testscript_update_script_stderr -=== CONT TestScripts/testscript_update_script_actual_is_file -=== CONT TestScripts/testscript_update_script_expected_not_in_archive -=== CONT TestScripts/stdin -=== NAME TestScripts/command - testscript.go:584: > printargs a b 'c d' +=== CONT TestScripts/cmpenv +=== NAME TestScripts/testscript_stdout_stderr_error + testscript.go:584: # 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" "a" "b" "c d"] - > stdout '\["printargs" "a" "b" "c d"\]\n' + ** RUN testscript ** + > 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 -=== NAME TestScripts/interrupt - testscript.go:584: > [windows] skip - > signalcatcher & - > waitfile catchsignal - > interrupt - > wait - [background] signalcatcher: exit status 0 +=== CONT TestScripts/interrupt_implicit +=== NAME TestScripts/testscript_explicit_exec + testscript.go:584: # 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] - caught interrupt - > stdout 'caught interrupt' + ** RUN testscript ** PASS -=== NAME TestScripts/interrupt_implicit - testscript.go:584: # Let testscript stop signalcatcher at the end of the testscript. (0.000s) - > signalcatcher & - > waitfile catchsignal - [background] signalcatcher: exit status 0 + > testscript scripts-explicit [stdout] - caught interrupt + ** RUN testscript ** + PASS + + > ! testscript -explicit-exec scripts-implicit + [stdout] + ** RUN testscript ** + > 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] + ** RUN testscript ** + PASS + + PASS + +=== NAME TestScripts/cmpenv + testscript.go:584: > env $=$ + > cmpenv file1 file2 PASS -=== CONT TestScripts/testscript_explicit_files === NAME TestScripts/testscript_update_script_actual_is_file testscript.go:584: > unquote scripts/testscript.txt > unquote testscript-new.txt @@ -3189,32 +3350,65 @@ > cmp scripts/testscript.txt testscript-new.txt PASS -=== NAME TestScripts/testscript_update_script_expected_not_in_archive - testscript.go:584: # 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 +=== CONT TestScripts/kill +=== CONT TestScripts/kill_unnamed +=== CONT TestScripts/cmd_stdout_stderr +=== CONT TestScripts/custom_cd +=== CONT TestScripts/defer +=== NAME TestScripts/testscript_update_script_stderr + testscript.go:584: > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript -update scripts [stdout] ** RUN testscript ** - > fprintargs stdout right + PASS + $WORK/scripts/testscript.txt updated + + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== NAME TestScripts/custom_cd + testscript.go:584: # Verify that a custom command can chdir. (0.000s) + > mkChdir foo + > exists $WORK/foo + # Current directory is not $WORK. (0.000s) + > ! exists foo + PASS + +=== NAME TestScripts/defer + testscript.go:584: > testdefer + > testdefer + > testdefer + PASS + +=== CONT TestScripts/interrupt +=== CONT TestScripts/hello +=== CONT TestScripts/cpstdout +=== NAME TestScripts/testscript_notfound + testscript.go:584: # Check that unknown commands output a useful error message (0.000s) + > ! testscript notfound [stdout] - right - > cp file expect - > cmp stdout expect - diff stdout expect - --- stdout - +++ expect - @@ -1,1 +1,1 @@ - -right - +wrong + ** RUN script ** + > notexist + FAIL: $WORK/notfound/script.txt:1: unknown command "notexist" - FAIL: $WORK/scripts/testscript.txt:3: stdout and expect differ + > stdout 'unknown command "notexist"' + > ! testscript negation + [stdout] + ** RUN script ** + > !exists file + FAIL: $WORK/negation/script.txt:1: unknown command "!exists" (did you mean "! exists"?) - > cmp scripts/testscript.txt unchanged + > stdout 'unknown command "!exists" \(did you mean "! exists"\?\)' + > ! testscript misspelled + [stdout] + ** RUN script ** + > exits file + FAIL: $WORK/misspelled/script.txt:1: unknown command "exits" (did you mean "exists"?) + + > stdout 'unknown command "exits" \(did you mean "exists"\?\)' PASS -=== CONT TestScripts/testscript_explicit_exec -=== CONT TestScripts/testscript_duplicate_name === NAME TestScripts/big_diff testscript.go:584: # Verify the behaviour of cmp in the case of a diff between two # large files (with a large diff) (0.000s) @@ -5284,7 +5478,7 @@ > env WORK=$WORK - PATH=/tmp/testscript-main2143175170/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3547297711/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -5297,136 +5491,97 @@ > cmpenv stdout stdout.golden PASS -=== NAME TestScripts/commandstatus - testscript.go:584: > ! status 1 - [exit status 1] - > ! status 2 - [exit status 2] - > status 0 - PASS - -=== CONT TestScripts/testscript_update_script -=== CONT TestScripts/testscript_stdout_stderr_error -=== NAME TestScripts/testscript_explicit_files - testscript.go:584: # Check that we can pass an explicit set of files to be tested. (0.000s) - > ! testscript -files foo.txtar x/bar.txtar y/bar.txtar 'y/bar#1.txtar' +=== NAME TestScripts/testscript_update_script + testscript.go:584: # 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] - ** RUN foo ** + ** RUN testscript ** PASS - ** RUN bar ** + $WORK/scripts/testscript.txt updated + ** RUN testscript2 ** PASS - ** RUN bar#1 ** - > echoandexit 1 '' 'bar#1 failure' - [stderr] - bar#1 failure - FAIL: $WORK/y/bar.txtar:1: told to exit with code 1 - ** RUN bar#1#1 ** - > echoandexit 1 '' 'bar#1#1 failure' - [stderr] - bar#1#1 failure - FAIL: $WORK/y/bar#1.txtar:1: told to exit with code 1 + $WORK/scripts/testscript2.txtar updated - > cmpenv stdout expect-stdout + > cmp scripts/testscript.txt testscript-new.txt + > cmp scripts/testscript2.txtar testscript-new.txt PASS -=== NAME TestScripts/stdin - testscript.go:584: > [!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 +=== NAME TestScripts/kill + testscript.go:584: > [!exec:sleep] skip + # This test depends on sleep exiting with a non-success status when being + # terminated by an interrupt (kill on Windows) signal. (0.000s) + > ! exec sleep 10 &test_sleep& + # Set a timeout. If the kill below fails, this sleep will have terminated + # before the test exits and so the test will fail when it completes. (0.000s) + > ! exec sleep 5 & + > kill -KILL test_sleep + > wait test_sleep + [background] sleep 5: signal: interrupt + PASS - > stdin stdout - > exec cat +=== NAME TestScripts/hello + testscript.go:584: > [!exec:cat] stop + # hello world (0.000s) + > exec cat hello.text [stdout] - hello - - > stdout hello + hello world + > stdout 'hello world\n' + > ! stderr . PASS -=== CONT TestScripts/setenv -=== CONT TestScripts/setupfiles -=== NAME TestScripts/setenv - testscript.go:584: > setSpecialVal - > exists $SPECIALVAL.txt - > ensureSpecialVal +=== NAME TestScripts/kill_unnamed + testscript.go:584: > [!exec:sleep] skip + # This test depends on sleep exiting with a non-success status when being + # terminated by an interrupt (kill on Windows) signal. (0.000s) + > ! exec sleep 10 & + > ! exec sleep 10 & + # Set a timeout. If the kill below fails, this sleep will have terminated + # before the test exits and so the test will fail when it completes. (0.000s) + > ! exec sleep 5 & + > kill -KILL + > wait + [background] sleep 10: signal: killed + [background] sleep 10: signal: killed + [background] sleep 5: signal: killed PASS -=== CONT TestScripts/regexpquote -=== NAME TestScripts/setupfiles - testscript.go:584: # check that the Setup function saw the unarchived files, - # including the temp directory that's always created. (0.000s) - > setup-filenames .tmp a b +=== NAME TestScripts/cpstdout + testscript.go:584: > [!exec:cat] stop + # hello world (0.000s) + > exec cat hello.text + [stdout] + hello world + > cp stdout got + > cmp got hello.text + > ! cmp got different.text + > exists got + > mv got new + > ! exists got + > cmp new hello.text PASS -=== NAME TestScripts/regexpquote - testscript.go:584: > env XXX='hello)' - > grep ^${XXX@R}$ file.txt +=== NAME TestScripts/interrupt_implicit + testscript.go:584: # Let testscript stop signalcatcher at the end of the testscript. (0.000s) + > signalcatcher & + > waitfile catchsignal + [background] signalcatcher: exit status 0 + [stdout] + caught interrupt PASS -=== CONT TestScripts/readfile -=== NAME TestScripts/wait - testscript.go:584: > [!exec:echo] skip - > [!exec:false] skip - # TODO: the '\n' below doesn't work on Windows on Github Actions, which does - # have coreutils like "echo" installed. Perhaps they emit CRLF? (0.000s) - > [windows] skip - > exec echo foo - [stdout] - foo - > stdout foo - > exec echo foo & - > exec echo bar & - > ! exec false & - # Starting a background process should clear previous output. (0.000s) - > ! stdout foo - # Wait should set the output to the concatenated outputs of the background - # programs, in the order in which they were started. (0.000s) - > wait - [background] echo foo: exit status 0 - [stdout] - foo - [background] echo bar: exit status 0 - [stdout] - bar - [background] false: exit status 1 - > stdout 'foo\nbar' - > exec echo bg1 &b1& - > exec echo bg2 &b2& - > exec echo bg3 &b3& - > exec echo bg4 &b4& - > wait b3 - [stdout] - bg3 - > stdout bg3 - > wait b2 - [stdout] - bg2 - > stdout bg2 +=== NAME TestScripts/interrupt + testscript.go:584: > [windows] skip + > signalcatcher & + > waitfile catchsignal + > interrupt > wait - [background] echo bg1: exit status 0 - [stdout] - bg1 - [background] echo bg4: exit status 0 + [background] signalcatcher: exit status 0 [stdout] - bg4 - > stdout 'bg1\nbg4' - # We should be able to start several background processes and wait for them - # individually. - # The end of the test should interrupt or kill any remaining background - # programs. (0.000s) - > [!exec:sleep] skip - > ! exec sleep 86400 & - [background] sleep 86400: signal: interrupt + caught interrupt + > stdout 'caught interrupt' PASS === NAME TestScripts/cmd_stdout_stderr @@ -5488,129 +5643,6 @@ > stderr 'hello stderr from echoandexit' PASS -=== CONT TestScripts/testscript_update_script_quote -=== NAME TestScripts/testscript_update_script_stderr - testscript.go:584: > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript -update scripts - [stdout] - ** RUN testscript ** - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt - PASS - -=== NAME TestScripts/testscript_stdout_stderr_error - testscript.go:584: # 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] - ** RUN testscript ** - > 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_duplicate_name - testscript.go:584: # 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] - ** RUN testscript ** - PASS - - > ! testscript -unique-names scripts-normalized - [stdout] - ** RUN testscript ** - 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/testscript_update_script_quote - testscript.go:584: > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript -update scripts - [stdout] - ** RUN testscript ** - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt - PASS - -=== NAME TestScripts/testscript_update_script - testscript.go:584: # 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] - ** RUN testscript ** - PASS - $WORK/scripts/testscript.txt updated - ** RUN testscript2 ** - PASS - $WORK/scripts/testscript2.txtar updated - - > cmp scripts/testscript.txt testscript-new.txt - > cmp scripts/testscript2.txtar testscript-new.txt - PASS - -=== NAME TestScripts/readfile - testscript.go:584: > fprintargs stdout stdout - [stdout] - stdout - > testreadfile stdout - > fprintargs stderr stderr - [stderr] - stderr - > testreadfile stderr - > testreadfile x/somefile - PASS - -=== NAME TestScripts/testscript_explicit_exec - testscript.go:584: # 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] - ** RUN testscript ** - PASS - - > testscript scripts-explicit - [stdout] - ** RUN testscript ** - PASS - - > ! testscript -explicit-exec scripts-implicit - [stdout] - ** RUN testscript ** - > 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] - ** RUN testscript ** - PASS - - PASS - === NAME TestScripts/testscript_logging testscript.go:584: # non-verbose, non-continue (0.000s) > ! testscript scripts @@ -5730,53 +5762,53 @@ PASS --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/pty (0.00s) - --- PASS: TestScripts/nothing (0.01s) - --- PASS: TestScripts/exists (0.01s) - --- PASS: TestScripts/long_diff (0.02s) - --- PASS: TestScripts/kill_unnamed (0.02s) - --- PASS: TestScripts/execguard (0.02s) - --- PASS: TestScripts/hello (0.02s) - --- PASS: TestScripts/custom_cd (0.00s) - --- PASS: TestScripts/defer (0.01s) - --- PASS: TestScripts/cmpenv (0.00s) - --- PASS: TestScripts/cond (0.00s) - --- PASS: TestScripts/values (0.00s) - --- PASS: TestScripts/testscript_notfound (0.03s) - --- PASS: TestScripts/cpstdout (0.00s) - --- PASS: TestScripts/kill (0.03s) - --- PASS: TestScripts/evalsymlink (0.01s) - --- PASS: TestScripts/command (0.01s) - --- PASS: TestScripts/interrupt_implicit (0.04s) - --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.02s) - --- PASS: TestScripts/testscript_update_script_actual_is_file (0.02s) - --- PASS: TestScripts/commandstatus (0.02s) - --- PASS: TestScripts/big_diff (0.05s) - --- PASS: TestScripts/stdin (0.02s) - --- PASS: TestScripts/testscript_explicit_files (0.00s) --- PASS: TestScripts/setenv (0.00s) + --- PASS: TestScripts/execguard (0.01s) + --- PASS: TestScripts/wait (0.01s) + --- PASS: TestScripts/exists (0.02s) + --- PASS: TestScripts/setupfiles (0.00s) + --- PASS: TestScripts/values (0.02s) --- PASS: TestScripts/regexpquote (0.00s) - --- PASS: TestScripts/setupfiles (0.02s) - --- PASS: TestScripts/cmd_stdout_stderr (0.05s) - --- PASS: TestScripts/wait (0.05s) - --- PASS: TestScripts/interrupt (0.07s) - --- PASS: TestScripts/testscript_update_script_stderr (0.05s) - --- PASS: TestScripts/testscript_stdout_stderr_error (0.02s) - --- PASS: TestScripts/testscript_duplicate_name (0.03s) - --- PASS: TestScripts/testscript_update_script_quote (0.01s) + --- PASS: TestScripts/long_diff (0.03s) + --- PASS: TestScripts/testscript_duplicate_name (0.01s) + --- PASS: TestScripts/cond (0.00s) + --- PASS: TestScripts/testscript_explicit_files (0.03s) + --- PASS: TestScripts/nothing (0.00s) + --- PASS: TestScripts/command (0.00s) + --- PASS: TestScripts/commandstatus (0.03s) + --- PASS: TestScripts/evalsymlink (0.03s) + --- PASS: TestScripts/testscript_stdout_stderr_error (0.06s) + --- PASS: TestScripts/testscript_explicit_exec (0.06s) --- PASS: TestScripts/readfile (0.04s) - --- PASS: TestScripts/testscript_explicit_exec (0.04s) - --- PASS: TestScripts/testscript_update_script (0.04s) - --- PASS: TestScripts/testscript_logging (0.09s) - --- PASS: TestScripts/exec_path_change (5.54s) + --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.06s) + --- PASS: TestScripts/pty (0.04s) + --- PASS: TestScripts/testscript_update_script_stderr (0.06s) + --- PASS: TestScripts/testscript_update_script_actual_is_file (0.06s) + --- PASS: TestScripts/stdin (0.05s) + --- PASS: TestScripts/testscript_update_script_quote (0.06s) + --- PASS: TestScripts/defer (0.00s) + --- PASS: TestScripts/custom_cd (0.00s) + --- PASS: TestScripts/testscript_notfound (0.06s) + --- PASS: TestScripts/cmpenv (0.00s) + --- PASS: TestScripts/big_diff (0.07s) + --- PASS: TestScripts/testscript_update_script (0.07s) + --- PASS: TestScripts/kill (0.01s) + --- PASS: TestScripts/hello (0.01s) + --- PASS: TestScripts/kill_unnamed (0.01s) + --- PASS: TestScripts/cpstdout (0.01s) + --- PASS: TestScripts/interrupt_implicit (0.01s) + --- PASS: TestScripts/interrupt (0.02s) + --- PASS: TestScripts/cmd_stdout_stderr (0.02s) + --- PASS: TestScripts/testscript_logging (0.12s) + --- PASS: TestScripts/exec_path_change (5.02s) === RUN TestTestwork ---- PASS: TestTestwork (1.27s) +--- PASS: TestTestwork (1.41s) === RUN TestWorkdirRoot === RUN TestWorkdirRoot/run_tests === RUN TestWorkdirRoot/run_tests/nothing === PAUSE TestWorkdirRoot/run_tests/nothing === CONT TestWorkdirRoot/run_tests/nothing - testscript.go:584: WORK=/tmp/TestWorkdirRoot1545924724/001/script-nothing + testscript.go:584: WORK=/tmp/TestWorkdirRoot2870364368/001/script-nothing # Intentionally empty test script; used to test Params.WorkdirRoot (0.000s) PASS @@ -5788,7 +5820,7 @@ === RUN TestUNIX2DOS --- PASS: TestUNIX2DOS (0.00s) PASS -ok github.com/rogpeppe/go-internal/testscript 6.822s +ok github.com/rogpeppe/go-internal/testscript 6.487s ? github.com/rogpeppe/go-internal/testscript/internal/pty [no test files] === RUN Test === RUN Test/basic @@ -5817,7 +5849,7 @@ --- PASS: TestQuote/bad_data (0.00s) --- PASS: TestQuote/no_final_newline (0.00s) PASS -ok github.com/rogpeppe/go-internal/txtar 0.003s +ok github.com/rogpeppe/go-internal/txtar 0.006s 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 1194 (offset 96 lines). @@ -5847,8 +5879,8 @@ dh_md5sums -O--builddirectory=_build -O--buildsystem=golang dh_builddeb -O--builddirectory=_build -O--buildsystem=golang dpkg-deb: building package 'golang-github-rogpeppe-go-internal-dev' in '../golang-github-rogpeppe-go-internal-dev_1.14.1-1_all.deb'. -dpkg-deb: building package 'go-internal-dbgsym' in '../go-internal-dbgsym_1.14.1-1_amd64.deb'. dpkg-deb: building package 'go-internal' in '../go-internal_1.14.1-1_amd64.deb'. +dpkg-deb: building package 'go-internal-dbgsym' in '../go-internal-dbgsym_1.14.1-1_amd64.deb'. dpkg-genbuildinfo --build=binary -O../golang-github-rogpeppe-go-internal_1.14.1-1_amd64.buildinfo dpkg-genchanges --build=binary -O../golang-github-rogpeppe-go-internal_1.14.1-1_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -5856,12 +5888,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/1058582/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1058582/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/2148559 and its subdirectories -I: Current time: Tue Oct 21 10:53:01 -12 2025 -I: pbuilder-time-stamp: 1761087181 +I: removing directory /srv/workspace/pbuilder/1058582 and its subdirectories +I: Current time: Tue Nov 24 19:19:48 +14 2026 +I: pbuilder-time-stamp: 1795497588