Diff of the two buildlogs: -- --- b1/build.log 2025-09-06 15:26:52.167357398 +0000 +++ b2/build.log 2025-09-06 15:28:05.251443694 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Sep 6 03:25:21 -12 2025 -I: pbuilder-time-stamp: 1757172321 +I: Current time: Sat Oct 10 11:49:54 +14 2026 +I: pbuilder-time-stamp: 1791582594 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/forky-reproducible-base.tgz] I: copying local configuration @@ -24,53 +24,85 @@ dpkg-source: info: applying 246.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1303965/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1316705/tmp/hooks/D01_modify_environment starting +debug: Running on codethink03-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Oct 9 21:50 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/1316705/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1316705/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='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='forky' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=forky + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='3e7f6b628d554544b37221f71243bd69' - 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='1303965' - PS1='# ' - PS2='> ' + INVOCATION_ID=b8df27a965834cfba9854e09c09cc2c3 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=1316705 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.obvqVz46/pbuilderrc_T7E4 --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.obvqVz46/b1 --logfile b1/build.log golang-github-rogpeppe-go-internal_1.12.0-3.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' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.obvqVz46/pbuilderrc_Hs2Y --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.obvqVz46/b2 --logfile b2/build.log golang-github-rogpeppe-go-internal_1.12.0-3.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' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink04-arm64 6.12.43+deb13-cloud-arm64 #1 SMP Debian 6.12.43-1 (2025-08-27) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.12.43+deb13-cloud-arm64 #1 SMP Debian 6.12.43-1 (2025-08-27) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1303965/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1316705/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -166,7 +198,7 @@ Get: 46 http://deb.debian.org/debian forky/main arm64 golang-golang-x-net-dev all 1:0.27.0-2 [904 kB] Get: 47 http://deb.debian.org/debian forky/main arm64 golang-golang-x-sync-dev all 0.7.0-1 [19.0 kB] Get: 48 http://deb.debian.org/debian forky/main arm64 golang-golang-x-tools-dev all 1:0.25.0+ds-1 [1608 kB] -Fetched 69.4 MB in 0s (307 MB/s) +Fetched 69.4 MB in 0s (249 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 ... 20011 files and directories currently installed.) @@ -380,7 +412,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../golang-github-rogpeppe-go-internal_1.12.0-3_source.changes +I: user script /srv/workspace/pbuilder/1316705/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/1316705/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../golang-github-rogpeppe-go-internal_1.12.0-3_source.changes dpkg-buildpackage: info: source package golang-github-rogpeppe-go-internal dpkg-buildpackage: info: source version 1.12.0-3 dpkg-buildpackage: info: source distribution unstable @@ -399,48 +435,48 @@ 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 -internal/byteorder -internal/profilerecord +internal/msan internal/coverage/rtcov -internal/goos -internal/goexperiment +internal/goarch +internal/byteorder internal/unsafeheader +internal/profilerecord internal/godebugs -internal/msan internal/asan -internal/goarch +internal/goos +internal/runtime/syscall +sync/atomic +internal/chacha8rand +internal/goexperiment +internal/runtime/math +internal/abi internal/cpu math/bits -sync/atomic unicode/utf8 unicode crypto/internal/fips140/alias -internal/runtime/syscall -internal/itoa -cmp -internal/runtime/math -internal/abi -internal/chacha8rand crypto/internal/fips140deps/byteorder +internal/itoa crypto/internal/fips140/subtle +cmp crypto/internal/boring/sig log/internal encoding unicode/utf16 -internal/runtime/atomic -internal/bytealg -internal/runtime/sys -crypto/internal/fips140deps/cpu internal/nettrace -math container/list vendor/golang.org/x/crypto/cryptobyte/asn1 vendor/golang.org/x/crypto/internal/alias +math github.com/rogpeppe/go-internal/internal/misspell internal/goversion internal/platform internal/syslist github.com/rogpeppe/go-internal/internal/syscall/windows +internal/runtime/atomic +internal/runtime/sys +crypto/internal/fips140deps/cpu +internal/bytealg github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll internal/stringslite internal/runtime/exithook @@ -448,176 +484,176 @@ internal/sync internal/runtime/maps runtime -internal/reflectlite -sync iter -crypto/subtle +internal/reflectlite weak -maps +crypto/subtle +sync slices -sort +maps errors +sort internal/bisect internal/testlog internal/singleflight unique -io internal/oserror path +strconv math/rand/v2 vendor/golang.org/x/net/dns/dnsmessage -strconv -syscall +io runtime/cgo +syscall internal/godebug bytes hash -crypto -crypto/internal/randutil -golang.org/x/mod/semver strings -github.com/rogpeppe/go-internal/semver -net/netip +golang.org/x/mod/semver hash/crc32 -reflect +crypto/internal/randutil crypto/internal/fips140deps/godebug math/rand +net/netip +reflect +crypto +github.com/rogpeppe/go-internal/semver vendor/golang.org/x/text/transform -github.com/rogpeppe/go-internal/par -time -internal/syscall/execenv -internal/syscall/unix -crypto/internal/fips140 crypto/internal/impl +regexp/syntax +crypto/internal/fips140 net/http/internal/ascii bufio -regexp/syntax go/build/constraint -crypto/internal/fips140/sha256 +github.com/rogpeppe/go-internal/par crypto/tls/internal/fips140tls crypto/internal/fips140/sha3 +crypto/internal/fips140/sha256 crypto/internal/fips140/sha512 crypto/sha3 crypto/internal/fips140/hmac +internal/syscall/unix +time +internal/syscall/execenv crypto/internal/fips140hash crypto/internal/fips140/check -crypto/internal/fips140/nistec/fiat -crypto/internal/fips140/aes crypto/internal/fips140/edwards25519/field +crypto/internal/fips140/aes +crypto/internal/fips140/nistec/fiat crypto/internal/fips140/bigmod -crypto/internal/fips140/tls12 crypto/internal/fips140/hkdf +crypto/internal/fips140/tls12 crypto/internal/fips140/tls13 crypto/internal/fips140/edwards25519 regexp -io/fs -context internal/poll +context +io/fs internal/filepathlite os crypto/internal/fips140/nistec encoding/binary github.com/rogpeppe/go-internal/fmtsort internal/fmtsort -encoding/base64 -vendor/golang.org/x/crypto/internal/poly1305 -encoding/pem crypto/internal/sysrand fmt -path/filepath github.com/rogpeppe/go-internal/lockedfile/internal/filelock +path/filepath golang.org/x/mod/internal/lazyregexp io/ioutil internal/sysinfo -net internal/lazyregexp github.com/rogpeppe/go-internal/robustio crypto/internal/entropy crypto/internal/fips140/drbg +net os/exec github.com/rogpeppe/go-internal/renameio -crypto/internal/fips140/aes/gcm +encoding/base64 +vendor/golang.org/x/crypto/internal/poly1305 crypto/internal/fips140only +crypto/internal/fips140/aes/gcm +crypto/internal/fips140/rsa crypto/internal/fips140/ed25519 crypto/internal/fips140/mlkem -crypto/internal/fips140/rsa -crypto/rc4 crypto/md5 -crypto/internal/fips140/ecdsa +crypto/rc4 +encoding/pem +crypto/cipher crypto/internal/fips140/ecdh +crypto/internal/fips140/ecdsa github.com/rogpeppe/go-internal/internal/os/execpath internal/goroot -crypto/cipher +crypto/internal/boring +crypto/des +vendor/golang.org/x/crypto/chacha20 encoding/hex -github.com/rogpeppe/go-internal/lockedfile -flag log golang.org/x/mod/module -golang.org/x/tools/txtar +github.com/rogpeppe/go-internal/lockedfile +flag compress/flate -net/url encoding/json -math/big -crypto/internal/boring -crypto/des crypto/sha256 +golang.org/x/tools/txtar +math/big crypto/aes crypto/ecdh crypto/sha512 crypto/hmac -vendor/golang.org/x/crypto/chacha20 +vendor/golang.org/x/crypto/chacha20poly1305 crypto/sha1 -github.com/rogpeppe/go-internal/cache +net/url vendor/golang.org/x/text/unicode/bidi +github.com/rogpeppe/go-internal/cache vendor/golang.org/x/text/unicode/norm vendor/golang.org/x/net/http2/hpack mime mime/quotedprintable -net/http/internal archive/zip compress/gzip -vendor/golang.org/x/crypto/chacha20poly1305 +net/http/internal github.com/rogpeppe/go-internal/diff github.com/rogpeppe/go-internal/imports runtime/debug runtime/trace github.com/rogpeppe/go-internal/testscript/internal/pty github.com/rogpeppe/go-internal/txtar +vendor/golang.org/x/text/secure/bidirule go/token go/doc/comment internal/buildcfg github.com/rogpeppe/go-internal/cmd/txtar-addmod -vendor/golang.org/x/text/secure/bidirule github.com/rogpeppe/go-internal/cmd/txtar-c -testing -go/scanner github.com/rogpeppe/go-internal/cmd/txtar-x golang.org/x/mod/modfile -go/ast +go/scanner +testing github.com/rogpeppe/go-internal/module -github.com/rogpeppe/go-internal/dirhash +go/ast vendor/golang.org/x/net/idna -crypto/rand crypto/elliptic crypto/internal/boring/bbig +crypto/rand encoding/asn1 crypto/dsa crypto/ed25519 crypto/internal/hpke crypto/rsa +github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/modfile -github.com/rogpeppe/go-internal/testenv -go/doc -go/parser crypto/x509/pkix vendor/golang.org/x/crypto/cryptobyte crypto/ecdsa +go/doc +go/parser +github.com/rogpeppe/go-internal/testenv go/build github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/gotooltest +vendor/golang.org/x/net/http/httpproxy net/textproto crypto/x509 -vendor/golang.org/x/net/http/httpproxy vendor/golang.org/x/net/http/httpguts mime/multipart crypto/tls @@ -634,9 +670,9 @@ 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 === RUN TestBasic ---- PASS: TestBasic (0.02s) +--- PASS: TestBasic (0.01s) === RUN TestGrowth ---- PASS: TestGrowth (0.91s) +--- PASS: TestGrowth (0.53s) === RUN TestVerifyPanic cache_test.go:138: go: internal cache error: cache verify failed: id=0100000000000000000000000000000000000000000000000000000000000000 changed:<<< @@ -645,13 +681,13 @@ new: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad 3 --- PASS: TestVerifyPanic (0.00s) === RUN TestCacheTrim ---- PASS: TestCacheTrim (0.01s) +--- PASS: TestCacheTrim (0.02s) === RUN TestHash --- PASS: TestHash (0.00s) === RUN TestHashFile --- PASS: TestHashFile (0.00s) PASS -ok github.com/rogpeppe/go-internal/cache 0.973s +ok github.com/rogpeppe/go-internal/cache 0.577s === RUN TestScripts === RUN TestScripts/continue === PAUSE TestScripts/continue @@ -680,18 +716,18 @@ === CONT TestScripts/continue === CONT TestScripts/nogo === CONT TestScripts/env_var_with_go +=== CONT TestScripts/env_var_no_go +=== CONT TestScripts/env_values === CONT TestScripts/skip +=== CONT TestScripts/update +=== CONT TestScripts/work === CONT TestScripts/simple +=== CONT TestScripts/error === CONT TestScripts/noproxy === CONT TestScripts/help -=== CONT TestScripts/error -=== CONT TestScripts/env_var_no_go -=== CONT TestScripts/work -=== CONT TestScripts/env_values -=== CONT TestScripts/update === NAME TestScripts/nogo testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -714,12 +750,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.076s) + # contains the command names, so use a special builtin instead. (0.007s) > dropgofrompath > ! testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1943756434/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -730,9 +766,9 @@ exe= > go env - FAIL: $WORK/.tmp/testscript3153314183/file.txt/script.txtar:1: unknown command "go" + FAIL: $WORK/.tmp/testscript1750285962/file.txt/script.txtar:1: unknown command "go" [stderr] - error running file.txt in $WORK/.tmp/testscript3153314183/file.txt + error running file.txt in $WORK/.tmp/testscript1750285962/file.txt [exit status 1] > stdout 'unknown command "go"' @@ -741,7 +777,7 @@ === NAME TestScripts/help testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -761,7 +797,7 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # Simply sanity check on help output (0.072s) + # Simply sanity check on help output (0.007s) > ! testscript -help [stderr] The testscript command runs github.com/rogpeppe/go-internal/testscript scripts @@ -893,7 +929,7 @@ === NAME TestScripts/env_var_no_go testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -922,11 +958,11 @@ > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= - # no GOPROXY, no pass-through, no proxy (0.068s) + # no GOPROXY, no pass-through, no proxy (0.006s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1943756434/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -947,11 +983,11 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.013s) + # no GOPROXY, no pass-through, with proxy (0.020s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1943756434/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -960,7 +996,7 @@ :=: $=$ exe= - GOPROXY=http://127.0.0.1:34095/mod + GOPROXY=http://127.0.0.1:40647/mod GONOSUMDB=* > env BANANA @@ -968,17 +1004,17 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:34095/mod + GOPROXY=http://127.0.0.1:40647/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.013s) + # no GOPROXY, with pass-through, no proxy (0.006s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1943756434/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1002,11 +1038,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.011s) + # no GOPROXY, with pass-through, with proxy (0.008s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1943756434/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1032,11 +1068,11 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.016s) + # with GOPROXY, no pass-through, no proxy (0.006s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1943756434/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1057,11 +1093,11 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # with GOPROXY, no pass-through, with proxy (0.012s) + # with GOPROXY, no pass-through, with proxy (0.007s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1943756434/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1070,7 +1106,7 @@ :=: $=$ exe= - GOPROXY=http://127.0.0.1:45441/mod + GOPROXY=http://127.0.0.1:43897/mod GONOSUMDB=* > env BANANA @@ -1078,17 +1114,17 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:45441/mod + GOPROXY=http://127.0.0.1:43897/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.023s) + # with GOPROXY, with pass-through, no proxy (0.004s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1943756434/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1112,11 +1148,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, with pass-through, with proxy (0.020s) + # with GOPROXY, with pass-through, with proxy (0.016s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1943756434/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1143,53 +1179,9 @@ > ! stderr .+ PASS -=== NAME TestScripts/continue - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3097473977/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=arm64 - GOOS=linux - GOROOT=/usr/lib/go-1.24 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.24 - GOINTERNALMODPATH=. - GONOSUMDB=* - - # should support -continue (0.000s) - > unquote file.txt - # Running with continue, the testscript command itself - # should fail, but we should see the results of executing - # both commands. (0.263s) - > ! testscript -continue file.txt - [stdout] - > grep banana in - [in] - apple - - FAIL: $WORK/.tmp/testscript2696428229/file.txt/script.txtar:1: no match for `banana` found in in - > grep apple in - [stderr] - error running file.txt in $WORK/.tmp/testscript2696428229/file.txt - - [exit status 1] - > stdout 'grep banana in' - > stdout 'no match for `banana` found in in' - > stdout 'grep apple in' - PASS - === NAME TestScripts/update testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1219,72 +1211,18 @@ [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.183s) + # a regular file (0.181s) > testscript -u - in.txt [stdout] PASS PASS - $WORK/.tmp/testscript312517596/in.txt/script.txtar updated + $WORK/.tmp/testscript334386676/in.txt/script.txtar updated > cmp in.txt res.txt PASS -=== NAME TestScripts/skip - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3097473977/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=arm64 - GOOS=linux - GOROOT=/usr/lib/go-1.24 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.24 - GOINTERNALMODPATH=. - GONOSUMDB=* - - # should support skip (0.268s) - > unquote file.txt - > testscript -v file.txt - [stdout] - WORK=$WORK - PATH=/tmp/testscript-main3097473977/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=arm64 - GOOS=linux - GOROOT=/usr/lib/go-1.24 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.24 - - > go version - [stdout] - go version go1.24.4 linux/arm64 - - > skip - > stdout 'go version' - > ! stderr .+ - PASS - === NAME TestScripts/work testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1310,12 +1248,12 @@ # # 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.261s) + # within the working directory. (0.188s) > unquote file.txt dir/file.txt > testscript -v -work file.txt dir/file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1336,7 +1274,7 @@ > exec true PASS WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1357,9 +1295,9 @@ > exec true PASS [stderr] - temporary work directory: $WORK/.tmp/testscript22640280 - temporary work directory for file.txt: $WORK/.tmp/go-test-script3658449702/script-script - temporary work directory for dir/file.txt: $WORK/.tmp/go-test-script137424125/script-script + temporary work directory: $WORK/.tmp/testscript25824893 + temporary work directory for file.txt: $WORK/.tmp/go-test-script3338343704/script-script + temporary work directory for dir/file.txt: $WORK/.tmp/go-test-script388893155/script-script > stderr '^temporary work directory: \Q'$WORK'\E[/\\]\.tmp[/\\]' > stderr '^temporary work directory for file.txt: \Q'$WORK'\E[/\\]\.tmp[/\\]' > stderr '^temporary work directory for dir[/\\]file.txt: \Q'$WORK'\E[/\\]\.tmp[/\\]' @@ -1369,7 +1307,7 @@ === NAME TestScripts/noproxy testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1392,13 +1330,13 @@ # With no .gomodproxy supporting files, we use the GOPROXY from # the environment. # Note that Go 1.21 started quoting with single quotes in "go env", - # where older versions used double quotes. (0.307s) + # where older versions used double quotes. (0.183s) > env GOPROXY=0.1.2.3 > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1441,7 +1379,7 @@ GOEXPERIMENT='' GOFIPS140='off' GOFLAGS='' - GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build181049237=/tmp/go-build -gno-record-gcc-switches' + GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build430606449=/tmp/go-build -gno-record-gcc-switches' GOHOSTARCH='arm64' GOHOSTOS='linux' GOINSECURE='' @@ -1470,9 +1408,107 @@ PASS PASS +=== NAME TestScripts/continue + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main1943756434/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=arm64 + GOOS=linux + GOROOT=/usr/lib/go-1.24 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.24 + GOINTERNALMODPATH=. + GONOSUMDB=* + + # should support -continue (0.000s) + > unquote file.txt + # Running with continue, the testscript command itself + # should fail, but we should see the results of executing + # both commands. (0.192s) + > ! testscript -continue file.txt + [stdout] + > grep banana in + [in] + apple + + FAIL: $WORK/.tmp/testscript1515134781/file.txt/script.txtar:1: no match for `banana` found in in + > grep apple in + [stderr] + error running file.txt in $WORK/.tmp/testscript1515134781/file.txt + + [exit status 1] + > stdout 'grep banana in' + > stdout 'no match for `banana` found in in' + > stdout 'grep apple in' + PASS + +=== NAME TestScripts/skip + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main1943756434/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=arm64 + GOOS=linux + GOROOT=/usr/lib/go-1.24 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.24 + GOINTERNALMODPATH=. + GONOSUMDB=* + + # should support skip (0.192s) + > unquote file.txt + > testscript -v file.txt + [stdout] + WORK=$WORK + PATH=/tmp/testscript-main1943756434/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=arm64 + GOOS=linux + GOROOT=/usr/lib/go-1.24 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.24 + + > go version + [stdout] + go version go1.24.4 linux/arm64 + + > skip + > stdout 'go version' + > ! stderr .+ + PASS + === NAME TestScripts/simple testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1493,13 +1529,13 @@ GONOSUMDB=* # With .gomodproxy supporting files, any GOPROXY from the - # environment should be overridden by the test proxy. (0.331s) + # environment should be overridden by the test proxy. (0.215s) > env GOPROXY=0.1.2.3 > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1514,7 +1550,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:34459/mod + GOPROXY=http://127.0.0.1:32997/mod goversion=1.24 GONOSUMDB=* @@ -1540,9 +1576,9 @@ > ! stderr .+ PASS -=== NAME TestScripts/env_values +=== NAME TestScripts/error testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1562,30 +1598,14 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # Test that passing env values, e.g. ENV1=val, works (0.000s) - > unquote test.txt - > env BLAH1= - > env BLAH2=junk - # Normal operation (0.264s) - > 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.112s) - > ! testscript -e BLAH1=rubbish -e BLAH2 -e WORK test.txt + # should support skip (0.000s) + > unquote file.txt + # stdin (0.186s) + > stdin file.txt + > ! testscript -v [stdout] - FAIL: $WORK/.tmp/testscript706470097/test.txt/script.txtar:0: cannot override WORK variable - [stderr] - error running test.txt in $WORK/.tmp/testscript706470097/test.txt - - [exit status 1] - > stdout 'cannot override WORK variable' - PASS - -=== NAME TestScripts/error - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + WORK=$WORK + PATH=/tmp/testscript-main1943756434/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 @@ -1602,17 +1622,20 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.24 - GOINTERNALMODPATH=. - GONOSUMDB=* - # should support skip (0.000s) - > unquote file.txt - # stdin (0.258s) - > stdin file.txt - > ! testscript -v + > exec false + [exit status 1] + FAIL: $WORK/.tmp/testscript2232451882/-/script.txtar:1: unexpected command failure + [stderr] + error running in $WORK/.tmp/testscript2232451882/- + + [exit status 1] + > stderr 'error running in' + # file-based (0.035s) + > ! testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1632,17 +1655,17 @@ > exec false [exit status 1] - FAIL: $WORK/.tmp/testscript333423792/-/script.txtar:1: unexpected command failure + FAIL: $WORK/.tmp/testscript1000620875/file.txt/script.txtar:1: unexpected command failure [stderr] - error running in $WORK/.tmp/testscript333423792/- + error running file.txt in $WORK/.tmp/testscript1000620875/file.txt [exit status 1] - > stderr 'error running in' - # file-based (0.130s) - > ! testscript -v file.txt - [stdout] - WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + > stderr 'error running file.txt in' + PASS + +=== NAME TestScripts/env_values + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main1943756434/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 @@ -1659,20 +1682,33 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.24 + GOINTERNALMODPATH=. + GONOSUMDB=* - > exec false - [exit status 1] - FAIL: $WORK/.tmp/testscript374520818/file.txt/script.txtar:1: unexpected command failure + # Test that passing env values, e.g. ENV1=val, works (0.000s) + > unquote test.txt + > env BLAH1= + > env BLAH2=junk + # Normal operation (0.186s) + > 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.057s) + > ! testscript -e BLAH1=rubbish -e BLAH2 -e WORK test.txt + [stdout] + FAIL: $WORK/.tmp/testscript4093115572/test.txt/script.txtar:0: cannot override WORK variable [stderr] - error running file.txt in $WORK/.tmp/testscript374520818/file.txt + error running test.txt in $WORK/.tmp/testscript4093115572/test.txt [exit status 1] - > stderr 'error running file.txt in' + > stdout 'cannot override WORK variable' PASS === NAME TestScripts/env_var_with_go testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1701,11 +1737,11 @@ # This is the counterpart to env_var_no_go.txt (0.000s) > unquote noproxy.txt > unquote withproxy.txt - # Baseline (0.273s) + # Baseline (0.189s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1737,11 +1773,11 @@ > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= - # no GOPROXY, no pass-through, no proxy (0.134s) + # no GOPROXY, no pass-through, no proxy (0.029s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1770,11 +1806,11 @@ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=https://proxy.golang.org,direct$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.128s) + # no GOPROXY, no pass-through, with proxy (0.029s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1789,7 +1825,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:39521/mod + GOPROXY=http://127.0.0.1:34127/mod goversion=1.24 GONOSUMDB=* @@ -1798,17 +1834,17 @@ > env GOPATH GOPATH=$WORK/.gopath > env GOPROXY - GOPROXY=http://127.0.0.1:39521/mod + GOPROXY=http://127.0.0.1:34127/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.110s) + # no GOPROXY, with pass-through, no proxy (0.028s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1838,11 +1874,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.098s) + # no GOPROXY, with pass-through, with proxy (0.026s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1874,11 +1910,11 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.116s) + # with GOPROXY, no pass-through, no proxy (0.030s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1907,11 +1943,11 @@ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, no pass-through, with proxy (0.118s) + # with GOPROXY, no pass-through, with proxy (0.033s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1926,7 +1962,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:33531/mod + GOPROXY=http://127.0.0.1:33965/mod goversion=1.24 GONOSUMDB=* @@ -1935,17 +1971,17 @@ > env GOPATH GOPATH=$WORK/.gopath > env GOPROXY - GOPROXY=http://127.0.0.1:33531/mod + GOPROXY=http://127.0.0.1:33965/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.127s) + # with GOPROXY, with pass-through, no proxy (0.040s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -1975,11 +2011,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, with pass-through, with proxy (0.116s) + # with GOPROXY, with pass-through, with proxy (0.032s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main3097473977/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1943756434/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 @@ -2012,21 +2048,21 @@ > ! stderr .+ PASS ---- PASS: TestScripts (0.09s) - --- PASS: TestScripts/nogo (0.08s) - --- PASS: TestScripts/help (0.07s) - --- PASS: TestScripts/env_var_no_go (0.18s) - --- PASS: TestScripts/continue (0.26s) +--- PASS: TestScripts (0.05s) + --- PASS: TestScripts/nogo (0.01s) + --- PASS: TestScripts/help (0.01s) + --- PASS: TestScripts/env_var_no_go (0.07s) --- PASS: TestScripts/update (0.19s) - --- PASS: TestScripts/skip (0.27s) - --- PASS: TestScripts/work (0.26s) - --- PASS: TestScripts/noproxy (0.31s) - --- PASS: TestScripts/simple (0.33s) - --- PASS: TestScripts/env_values (0.38s) - --- PASS: TestScripts/error (0.39s) - --- PASS: TestScripts/env_var_with_go (1.22s) + --- PASS: TestScripts/work (0.19s) + --- PASS: TestScripts/noproxy (0.18s) + --- PASS: TestScripts/continue (0.19s) + --- PASS: TestScripts/skip (0.19s) + --- PASS: TestScripts/simple (0.22s) + --- PASS: TestScripts/error (0.22s) + --- PASS: TestScripts/env_values (0.25s) + --- PASS: TestScripts/env_var_with_go (0.44s) PASS -ok github.com/rogpeppe/go-internal/cmd/testscript 1.398s +ok github.com/rogpeppe/go-internal/cmd/testscript 0.494s === RUN TestScripts === RUN TestScripts/encode === PAUSE TestScripts/encode @@ -2035,13 +2071,13 @@ === RUN TestScripts/txtar-addmod-self === PAUSE TestScripts/txtar-addmod-self === CONT TestScripts/encode -=== CONT TestScripts/to_stdout === CONT TestScripts/txtar-addmod-self +=== CONT TestScripts/to_stdout go proxy: no archive github.com/shurcooL v0.0.0-20171119174359-809beceb2371 go proxy: no archive github.com v0.0.0-20171119174359-809beceb2371 === NAME TestScripts/encode testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1573483110/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3337007269/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 @@ -2056,7 +2092,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:41523/mod + GOPROXY=http://127.0.0.1:34943/mod goversion=1.24 GONOSUMDB=* @@ -2069,7 +2105,7 @@ === NAME TestScripts/to_stdout testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1573483110/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3337007269/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 @@ -2084,7 +2120,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:41523/mod + GOPROXY=http://127.0.0.1:34943/mod goversion=1.24 GONOSUMDB=* @@ -2111,7 +2147,7 @@ === NAME TestScripts/txtar-addmod-self testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1573483110/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3337007269/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 @@ -2126,7 +2162,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:41523/mod + GOPROXY=http://127.0.0.1:34943/mod goversion=1.24 GONOSUMDB=* @@ -2140,12 +2176,12 @@ > grep '-- foobar --' $WORK/out/github.com_gobin-testrepos_simple-main_v1.0.0.txtar PASS ---- PASS: TestScripts (0.08s) - --- PASS: TestScripts/encode (0.07s) - --- PASS: TestScripts/to_stdout (0.13s) - --- PASS: TestScripts/txtar-addmod-self (0.27s) +--- PASS: TestScripts (0.05s) + --- PASS: TestScripts/encode (0.04s) + --- PASS: TestScripts/to_stdout (0.07s) + --- PASS: TestScripts/txtar-addmod-self (0.13s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 0.452s +ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 0.196s === RUN TestScripts === RUN TestScripts/all === PAUSE TestScripts/all @@ -2161,7 +2197,7 @@ === CONT TestScripts/needquote === NAME TestScripts/quote testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3882676061/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main685913926/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 @@ -2183,9 +2219,9 @@ > cmp stdout expect PASS -=== NAME TestScripts/txtar-savedir-self +=== NAME TestScripts/needquote testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3882676061/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main685913926/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 @@ -2195,29 +2231,21 @@ $=$ exe= + > unquote blah/withsep > unquote expect > txtar-c blah [stdout] - -- go.mod -- - module example.com/blah - - -- main.go -- - package main - - import "fmt" - - func main() { - fmt.Println("Hello, world!") - } - -- subdir/x -- - x contents - > ! stderr .+ + -- nosep -- + bar + [stderr] + txtar-c: blah/withsep: ignoring file with txtar marker in + > stderr 'txtar-c: blah.withsep: ignoring file with txtar marker in' > cmp stdout expect PASS -=== NAME TestScripts/needquote +=== NAME TestScripts/txtar-savedir-self testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3882676061/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main685913926/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 @@ -2227,21 +2255,29 @@ $=$ exe= - > unquote blah/withsep > unquote expect > txtar-c blah [stdout] - -- nosep -- - bar - [stderr] - txtar-c: blah/withsep: ignoring file with txtar marker in - > stderr 'txtar-c: blah.withsep: ignoring file with txtar marker in' + -- go.mod -- + module example.com/blah + + -- main.go -- + package main + + import "fmt" + + func main() { + fmt.Println("Hello, world!") + } + -- subdir/x -- + x contents + > ! stderr .+ > cmp stdout expect PASS === NAME TestScripts/all testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3882676061/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main685913926/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 @@ -2253,7 +2289,7 @@ > unquote expect-all > unquote expect-no-all - # Without the -a flag, it should ignore . files. (0.018s) + # Without the -a flag, it should ignore . files. (0.004s) > txtar-c blah [stdout] -- go.mod -- @@ -2269,7 +2305,7 @@ } > ! stderr .+ > cmp stdout expect-no-all - # With the -a flag, it should include them. (0.008s) + # With the -a flag, it should include them. (0.003s) > txtar-c -a blah [stdout] -- .foo/foo -- @@ -2292,12 +2328,12 @@ PASS --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/quote (0.01s) - --- PASS: TestScripts/txtar-savedir-self (0.02s) - --- PASS: TestScripts/needquote (0.02s) - --- PASS: TestScripts/all (0.03s) + --- PASS: TestScripts/quote (0.00s) + --- PASS: TestScripts/needquote (0.00s) + --- PASS: TestScripts/txtar-savedir-self (0.00s) + --- PASS: TestScripts/all (0.01s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.048s +ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.014s ? github.com/rogpeppe/go-internal/cmd/txtar-goproxy [no test files] === RUN TestScripts === RUN TestScripts/extract-dir @@ -2309,12 +2345,11 @@ === RUN TestScripts/extract === PAUSE TestScripts/extract === CONT TestScripts/extract-dir +=== CONT TestScripts/extract-out-of-bounds === CONT TestScripts/extract-stdin === CONT TestScripts/extract -=== CONT TestScripts/extract-out-of-bounds -=== NAME TestScripts/extract-stdin testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2232423592/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1002558377/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 @@ -2325,15 +2360,14 @@ exe= > unquote file.txtar - > stdin file.txtar - > txtar-x + > txtar-x file.txtar > cmp foo expect/foo > cmp a/b/bar expect/a/b/bar PASS -=== NAME TestScripts/extract +=== NAME TestScripts/extract-dir testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2232423592/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1002558377/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 @@ -2344,14 +2378,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-dir +=== NAME TestScripts/extract-stdin testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2232423592/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1002558377/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 @@ -2362,14 +2396,15 @@ exe= > unquote file.txtar - > txtar-x -C x/y file.txtar - > cmp x/y/foo expect/foo - > cmp x/y/a/b/bar expect/a/b/bar + > stdin file.txtar + > txtar-x + > cmp foo expect/foo + > cmp a/b/bar expect/a/b/bar PASS === NAME TestScripts/extract-out-of-bounds testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2232423592/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1002558377/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 @@ -2393,12 +2428,12 @@ PASS --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/extract (0.01s) + --- PASS: TestScripts/extract (0.00s) + --- PASS: TestScripts/extract-dir (0.00s) --- PASS: TestScripts/extract-stdin (0.01s) - --- PASS: TestScripts/extract-dir (0.02s) - --- PASS: TestScripts/extract-out-of-bounds (0.03s) + --- PASS: TestScripts/extract-out-of-bounds (0.01s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.060s +ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.015s === RUN Test === RUN Test/allnew.txt === RUN Test/allold.txt @@ -2426,7 +2461,7 @@ --- PASS: Test/start.txt (0.00s) --- PASS: Test/triv.txt (0.00s) PASS -ok github.com/rogpeppe/go-internal/diff 0.028s +ok github.com/rogpeppe/go-internal/diff 0.006s === RUN TestHash1 --- PASS: TestHash1 (0.00s) === RUN TestHashDir @@ -2444,13 +2479,13 @@ === RUN TestInterface --- PASS: TestInterface (0.00s) PASS -ok github.com/rogpeppe/go-internal/fmtsort 0.058s +ok github.com/rogpeppe/go-internal/fmtsort 0.008s === RUN TestScripts === RUN TestScripts/list === PAUSE TestScripts/list === CONT TestScripts/list testscript.go:558: 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 @@ -2465,7 +2500,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:36873/mod + GOPROXY=http://127.0.0.1:33797/mod goversion=1.24 GONOSUMDB=* @@ -2497,10 +2532,10 @@ PASS ---- PASS: TestScripts (0.14s) - --- PASS: TestScripts/list (0.06s) +--- PASS: TestScripts (0.03s) + --- PASS: TestScripts/list (0.04s) PASS -ok github.com/rogpeppe/go-internal/goproxytest 0.261s +ok github.com/rogpeppe/go-internal/goproxytest 0.095s === RUN TestInitGoEnv --- PASS: TestInitGoEnv (0.08s) === RUN TestSimple @@ -2511,10 +2546,11 @@ === RUN TestSimple/version === PAUSE TestSimple/version === CONT TestSimple/cover -=== CONT TestSimple/version === CONT TestSimple/env +=== CONT TestSimple/version +=== NAME TestSimple/env testscript.go:558: 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 @@ -2534,7 +2570,7 @@ GOINTERNAL_MODULE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/src/github.com/rogpeppe/go-internal # GOPATH and GOMODCACHE are not shared with the host, - # but GOCACHE is. (0.023s) + # but GOCACHE is. (0.014s) > go env [stdout] AR='ar' @@ -2560,7 +2596,7 @@ GOEXPERIMENT='' GOFIPS140='off' GOFLAGS='' - GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build933783348=/tmp/go-build -gno-record-gcc-switches' + GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build1872478918=/tmp/go-build -gno-record-gcc-switches' GOHOSTARCH='arm64' GOHOSTOS='linux' GOINSECURE='' @@ -2591,7 +2627,7 @@ === NAME TestSimple/version testscript.go:558: 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 @@ -2622,7 +2658,7 @@ === NAME TestSimple/cover testscript.go:1163: testscript.go:558: 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 @@ -2643,25 +2679,25 @@ > unquote scripts/exec.txt # The module uses testscript itself. - # Use the checked out module, based on where the test binary ran. (0.207s) + # Use the checked out module, based on where the test binary ran. (0.147s) > go mod edit -replace=github.com/rogpeppe/go-internal=${GOINTERNAL_MODULE} > go mod tidy [stderr] go: found github.com/rogpeppe/go-internal/gotooltest in github.com/rogpeppe/go-internal v0.0.0-00010101000000-000000000000 go: found github.com/rogpeppe/go-internal/testscript in github.com/rogpeppe/go-internal v0.0.0-00010101000000-000000000000 go: github.com/rogpeppe/go-internal@v0.0.0-00010101000000-000000000000 requires - golang.org/x/mod@v0.9.0: Get "https://proxy.golang.org/golang.org/x/mod/@v/v0.9.0.mod": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:35367->[::1]:53: read: connection refused + golang.org/x/mod@v0.9.0: Get "https://proxy.golang.org/golang.org/x/mod/@v/v0.9.0.mod": dial tcp: lookup proxy.golang.org on [::1]:53: read udp [::1]:56775->[::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.06s) - --- PASS: TestSimple/env (0.02s) - --- PASS: TestSimple/version (0.08s) - --- SKIP: TestSimple/cover (0.21s) +--- PASS: TestSimple (0.04s) + --- PASS: TestSimple/env (0.01s) + --- PASS: TestSimple/version (0.05s) + --- SKIP: TestSimple/cover (0.15s) PASS -ok github.com/rogpeppe/go-internal/gotooltest 0.418s +ok github.com/rogpeppe/go-internal/gotooltest 0.294s === RUN TestReadImports --- PASS: TestReadImports (0.00s) === RUN TestReadComments @@ -2675,7 +2711,7 @@ === RUN TestScanStar --- PASS: TestScanStar (0.00s) PASS -ok github.com/rogpeppe/go-internal/imports 0.036s +ok github.com/rogpeppe/go-internal/imports 0.014s === RUN TestAlmostEqual === PAUSE TestAlmostEqual === CONT TestAlmostEqual @@ -2707,7 +2743,7 @@ --- PASS: FuzzAlmostEqual/b323cef1fc26e507 (0.00s) --- PASS: FuzzAlmostEqual/c6edde4256d6f5eb (0.00s) PASS -ok github.com/rogpeppe/go-internal/internal/misspell 0.053s +ok github.com/rogpeppe/go-internal/internal/misspell 0.017s ? github.com/rogpeppe/go-internal/internal/os/execpath [no test files] ? github.com/rogpeppe/go-internal/internal/syscall/windows [no test files] ? github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll [no test files] @@ -2720,19 +2756,20 @@ === RUN TestSpuriousEDEADLK --- PASS: TestSpuriousEDEADLK (0.02s) === RUN TestTransform ---- PASS: TestTransform (0.58s) +--- PASS: TestTransform (0.38s) === CONT TestMutexExcludes === CONT TestCanLockExistingFile === CONT TestReadWaitsForLock - lockedfile_test.go:134: WriteString("part 1\n") = === NAME TestMutexExcludes lockedfile_test.go:85: mu := MutexAt(_) lockedfile_test.go:91: unlock, _ := mu.Lock() lockedfile_test.go:94: mu2 := MutexAt(mu.Path) === NAME TestReadWaitsForLock + lockedfile_test.go:134: WriteString("part 1\n") = lockedfile_test.go:156: WriteString("part 2\n") = === NAME TestMutexExcludes lockedfile_test.go:107: unlock() +--- PASS: TestCanLockExistingFile (0.01s) === NAME TestReadWaitsForLock lockedfile_test.go:146: Read(_) = "part 1\npart 2\n" === NAME TestMutexExcludes @@ -2740,9 +2777,8 @@ lockedfile_test.go:103: unlock2() --- PASS: TestReadWaitsForLock (0.01s) --- PASS: TestMutexExcludes (0.01s) ---- PASS: TestCanLockExistingFile (0.01s) PASS -ok github.com/rogpeppe/go-internal/lockedfile 0.709s +ok github.com/rogpeppe/go-internal/lockedfile 0.432s === RUN TestLockExcludesLock === PAUSE TestLockExcludesLock === RUN TestLockExcludesRLock @@ -2750,67 +2786,64 @@ === RUN TestRLockExcludesOnlyLock === PAUSE TestRLockExcludesOnlyLock === RUN TestLockNotDroppedByExecCommand - filelock_test.go:188: fd 6 = /tmp/TestLockNotDroppedByExecCommand675704615 + filelock_test.go:188: fd 6 = /tmp/TestLockNotDroppedByExecCommand97001626 filelock_test.go:191: Lock(fd 6) = - filelock_test.go:193: fd 7 = os.Open("/tmp/TestLockNotDroppedByExecCommand675704615") + filelock_test.go:193: fd 7 = os.Open("/tmp/TestLockNotDroppedByExecCommand97001626") filelock_test.go:204: Lock(fd 7) is blocked (as expected) filelock_test.go:205: Unlock(fd 6) = asm_arm64.s:1223: Lock(fd 7) = filelock_test.go:207: Unlock(fd 7) = ---- PASS: TestLockNotDroppedByExecCommand (0.03s) +--- PASS: TestLockNotDroppedByExecCommand (0.02s) === CONT TestLockExcludesLock - filelock_test.go:121: fd 6 = /tmp/TestLockExcludesLock2777278639 - filelock_test.go:124: fd 7 = os.Open("/tmp/TestLockExcludesLock2777278639") - filelock_test.go:127: Lock(fd 6) = -=== CONT TestLockExcludesRLock + filelock_test.go:121: fd 6 = /tmp/TestLockExcludesLock1610974144 + filelock_test.go:124: fd 7 = os.Open("/tmp/TestLockExcludesLock1610974144") === CONT TestRLockExcludesOnlyLock - filelock_test.go:153: fd 9 = /tmp/TestRLockExcludesOnlyLock298912943 - filelock_test.go:155: RLock(fd 9) = - filelock_test.go:157: fd 10 = os.Open("/tmp/TestRLockExcludesOnlyLock298912943") - filelock_test.go:171: RLock(fd 10) = - filelock_test.go:175: fd 11 = os.Open("/tmp/TestRLockExcludesOnlyLock298912943") -=== NAME TestLockExcludesRLock - filelock_test.go:137: fd 8 = /tmp/TestLockExcludesRLock1361127883 - filelock_test.go:140: fd 12 = os.Open("/tmp/TestLockExcludesRLock1361127883") - filelock_test.go:143: Lock(fd 8) = === NAME TestLockExcludesLock - filelock_test.go:128: Lock(fd 7) is blocked (as expected) - filelock_test.go:129: Unlock(fd 6) = + filelock_test.go:127: Lock(fd 6) = === NAME TestRLockExcludesOnlyLock - filelock_test.go:177: Lock(fd 11) is blocked (as expected) -=== NAME TestLockExcludesRLock - filelock_test.go:144: RLock(fd 12) is blocked (as expected) + filelock_test.go:153: fd 8 = /tmp/TestRLockExcludesOnlyLock2090013061 + filelock_test.go:155: RLock(fd 8) = +=== CONT TestLockExcludesRLock + filelock_test.go:137: fd 10 = /tmp/TestLockExcludesRLock1982234416 === NAME TestRLockExcludesOnlyLock - filelock_test.go:179: Unlock(fd 10) = + filelock_test.go:157: fd 9 = os.Open("/tmp/TestRLockExcludesOnlyLock2090013061") + filelock_test.go:171: RLock(fd 9) = === NAME TestLockExcludesRLock - filelock_test.go:145: Unlock(fd 8) = + filelock_test.go:140: fd 11 = os.Open("/tmp/TestLockExcludesRLock1982234416") + filelock_test.go:143: Lock(fd 10) = === NAME TestRLockExcludesOnlyLock - filelock_test.go:181: Unlock(fd 9) = -=== NAME TestLockExcludesRLock - asm_arm64.s:1223: RLock(fd 12) = + filelock_test.go:175: fd 12 = os.Open("/tmp/TestRLockExcludesOnlyLock2090013061") +=== NAME TestLockExcludesLock + filelock_test.go:128: Lock(fd 7) is blocked (as expected) + filelock_test.go:129: Unlock(fd 6) = + asm_arm64.s:1223: Lock(fd 7) = + filelock_test.go:131: Unlock(fd 7) = +--- PASS: TestLockExcludesLock (0.01s) === NAME TestRLockExcludesOnlyLock - asm_arm64.s:1223: Lock(fd 11) = - filelock_test.go:184: Unlock(fd 11) = + filelock_test.go:177: Lock(fd 12) is blocked (as expected) + filelock_test.go:179: Unlock(fd 9) = + filelock_test.go:181: Unlock(fd 8) = + asm_arm64.s:1223: Lock(fd 12) = + filelock_test.go:184: Unlock(fd 12) = --- PASS: TestRLockExcludesOnlyLock (0.01s) === NAME TestLockExcludesRLock - filelock_test.go:147: Unlock(fd 12) = + filelock_test.go:144: RLock(fd 11) is blocked (as expected) + filelock_test.go:145: Unlock(fd 10) = + asm_arm64.s:1223: RLock(fd 11) = + filelock_test.go:147: Unlock(fd 11) = --- PASS: TestLockExcludesRLock (0.01s) -=== NAME TestLockExcludesLock - asm_arm64.s:1223: Lock(fd 7) = - filelock_test.go:131: Unlock(fd 7) = ---- PASS: TestLockExcludesLock (0.02s) PASS -ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.104s +ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.036s ? github.com/rogpeppe/go-internal/modfile [no test files] ? github.com/rogpeppe/go-internal/module [no test files] === RUN TestWork ---- PASS: TestWork (0.00s) +--- PASS: TestWork (0.01s) === RUN TestWorkParallel --- PASS: TestWorkParallel (0.00s) === RUN TestCache --- PASS: TestCache (0.00s) PASS -ok github.com/rogpeppe/go-internal/par 0.103s +ok github.com/rogpeppe/go-internal/par 0.011s ? 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] @@ -2829,7 +2862,7 @@ === RUN TestEnv --- PASS: TestEnv (0.00s) === RUN TestSetupFailure ---- PASS: TestSetupFailure (0.01s) +--- PASS: TestSetupFailure (0.00s) === RUN TestScripts === RUN TestScripts/big_diff === PAUSE TestScripts/big_diff @@ -2900,21 +2933,110 @@ === RUN TestScripts/wait === PAUSE TestScripts/wait === CONT TestScripts/big_diff +=== CONT TestScripts/wait === CONT TestScripts/readfile +=== CONT TestScripts/evalsymlink === CONT TestScripts/exec_path_change +=== CONT TestScripts/hello +=== CONT TestScripts/interrupt === CONT TestScripts/pty +=== CONT TestScripts/commandstatus +=== CONT TestScripts/cpstdout +=== CONT TestScripts/values +=== CONT TestScripts/cond +=== NAME TestScripts/values + testscript.go:558: > test-values + PASS + +=== CONT TestScripts/cmpenv + testscript.go:558: > env $=$ + > cmpenv file1 file2 + PASS + +=== NAME TestScripts/cond + testscript.go:558: # test that exactly one of gc and gccgo is set (0.000s) + > [gc] mkdir gc_true + > [gccgo] mkdir gccgo_true + > [gc] ! exists gccgo_true + > [!gc] exists gccgo_true + > [gccgo] ! exists gc_true + > [!gccgo] exists gc_true + # test that go version build tags are set (0.000s) + > [go1.1] mkdir go1.x + > [go2.1] mkdir go2.x + > exists go1.x + > ! exists go2.x + # unix should be true on Linux and MacOS, but not on Windows. + # Both platforms are tested on CI. (0.000s) + > [unix] mkdir unix_true + > [linux] exists unix_true + > [darwin] exists unix_true + > [windows] ! exists unix_true + PASS + +=== CONT TestScripts/command +=== NAME TestScripts/hello + testscript.go:558: > [!exec:cat] stop + # hello world (0.000s) + > exec cat hello.text + [stdout] + hello world + > stdout 'hello world\n' + > ! stderr . + PASS + === CONT TestScripts/nothing testscript.go:558: # Intentionally blank file, used to test that -testwork doesn't remove the work directory (0.000s) PASS +=== CONT TestScripts/long_diff === CONT TestScripts/defer +=== NAME TestScripts/cpstdout + testscript.go:558: > [!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 + +=== CONT TestScripts/exists +=== NAME TestScripts/pty + testscript.go:558: > [!linux] [!darwin] skip + > [darwin] skip # https://go.dev/issue/61779 + > ttyin secretwords.txt + > terminalprompt + > ttyout 'magic words' + > ! stderr . + > ! stdout . + PASS + +=== CONT TestScripts/execguard +=== NAME TestScripts/defer testscript.go:558: > testdefer > testdefer > testdefer PASS -=== CONT TestScripts/cpstdout -=== CONT TestScripts/long_diff +=== NAME TestScripts/exists + testscript.go:558: > chmod 444 foo_r + > exists foo + > ! exists unfoo + # TODO The following line fails but probably should not. + # ! exists -readonly foo (0.000s) + > exists foo_r + > exists -readonly foo_r + PASS + +=== CONT TestScripts/cmd_stdout_stderr +=== CONT TestScripts/testscript_explicit_exec +=== NAME TestScripts/long_diff testscript.go:558: # Verify the behaviour of cmp in the case of a small diff between # two large files (0.000s) > unquote dir/script.txt @@ -2935,7 +3057,7 @@ > env WORK=$WORK - PATH=/tmp/testscript-main1733310255/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2191505172/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 @@ -2948,42 +3070,285 @@ > cmpenv stdout stdout.golden PASS -=== CONT TestScripts/command -=== CONT TestScripts/interrupt -=== CONT TestScripts/hello -=== CONT TestScripts/exists - testscript.go:558: > chmod 444 foo_r - > exists foo - > ! exists unfoo - # TODO The following line fails but probably should not. - # ! exists -readonly foo (0.000s) - > exists foo_r - > exists -readonly foo_r +=== CONT TestScripts/testscript_update_script_stderr +=== NAME TestScripts/command + testscript.go:558: > printargs a b 'c d' + [stdout] + ["printargs" "a" "b" "c d"] + > stdout '\["printargs" "a" "b" "c d"\]\n' PASS -=== CONT TestScripts/commandstatus -=== CONT TestScripts/execguard -=== CONT TestScripts/cond -=== CONT TestScripts/evalsymlink -=== NAME TestScripts/cond - testscript.go:558: # test that exactly one of gc and gccgo is set (0.000s) - > [gc] mkdir gc_true - > [gccgo] mkdir gccgo_true - > [gc] ! exists gccgo_true - > [!gc] exists gccgo_true - > [gccgo] ! exists gc_true - > [!gccgo] exists gc_true - # test that go version build tags are set (0.000s) - > [go1.1] mkdir go1.x - > [go2.1] mkdir go2.x - > exists go1.x - > ! exists go2.x - # unix should be true on Linux and MacOS, but not on Windows. - # Both platforms are tested on CI. (0.000s) - > [unix] mkdir unix_true - > [linux] exists unix_true - > [darwin] exists unix_true - > [windows] ! exists unix_true +=== CONT TestScripts/testscript_update_script_quote +=== NAME TestScripts/evalsymlink + testscript.go:558: # If ioutil.TempDir returns a sym linked dir (default behaviour in macOS for example) the + # matcher will have problems with external programs that uses the real path. + # This script tests that $WORK is matched in a consistent way (also see #79). (0.000s) + > [windows] skip + > exec pwd + [stdout] + $WORK + > stdout ^$WORK$ + > exec pwd -P + [stdout] + $WORK + > stdout ^$WORK$ + PASS + +=== CONT TestScripts/testscript_update_script_expected_not_in_archive +=== NAME TestScripts/execguard + testscript.go:558: > [exec:nosuchcommand] exec nosuchcommand + > [!exec:cat] stop + > exec cat foo + [stdout] + foo + > stdout 'foo\n' + PASS + +=== NAME TestScripts/readfile + testscript.go:558: > fprintargs stdout stdout + [stdout] + stdout + > testreadfile stdout + > fprintargs stderr stderr + [stderr] + stderr + > testreadfile stderr + > testreadfile x/somefile + PASS + +=== CONT TestScripts/testscript_update_script +=== CONT TestScripts/testscript_update_script_actual_is_file +=== NAME TestScripts/testscript_update_script_stderr + testscript.go:558: > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript -update scripts + [stdout] + PASS + $WORK/scripts/testscript.txt updated + + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== NAME TestScripts/testscript_update_script_actual_is_file + testscript.go:558: > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript -update scripts + [stdout] + PASS + $WORK/scripts/testscript.txt updated + + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== NAME TestScripts/testscript_update_script_expected_not_in_archive + testscript.go:558: # Verify that comparing stdout against a file not in the archive does nothing (0.000s) + > unquote scripts/testscript.txt + > cp scripts/testscript.txt unchanged + > ! testscript -update scripts + [stdout] + > fprintargs stdout right + [stdout] + right + > cp file expect + > cmp stdout expect + diff stdout expect + --- stdout + +++ expect + @@ -1,1 +1,1 @@ + -right + +wrong + + FAIL: $WORK/scripts/testscript.txt:3: stdout and expect differ + + > cmp scripts/testscript.txt unchanged + PASS + +=== CONT TestScripts/testscript_stdout_stderr_error +=== CONT TestScripts/testscript_notfound +=== NAME TestScripts/testscript_update_script_quote + testscript.go:558: > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript -update scripts + [stdout] + PASS + $WORK/scripts/testscript.txt updated + + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== CONT TestScripts/testscript_logging +=== CONT TestScripts/setenv +=== NAME TestScripts/commandstatus + testscript.go:558: > ! status 1 + [exit status 1] + > ! status 2 + [exit status 2] + > status 0 + PASS + +=== NAME TestScripts/setenv + testscript.go:558: > setSpecialVal + > exists $SPECIALVAL.txt + > ensureSpecialVal + PASS + +=== CONT TestScripts/testscript_duplicate_name +=== NAME TestScripts/interrupt + testscript.go:558: > [windows] skip + > signalcatcher & + > waitfile catchsignal + > interrupt + > wait + [background] signalcatcher: exit status 0 + [stdout] + caught interrupt + > stdout 'caught interrupt' + PASS + +=== CONT TestScripts/stdin +=== NAME TestScripts/wait + testscript.go:558: > [!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/setupfiles + testscript.go:558: # check that the Setup function saw the unarchived files, + # including the temp directory that's always created. (0.000s) + > setup-filenames .tmp a b + PASS + +=== NAME TestScripts/testscript_explicit_exec + testscript.go:558: # Check that RequireExplicitExec works; + # it should reject `fprintargs` in favor of `exec fprintargs`, + # but it shouldn't complain about `some-param-cmd`, + # as that Params.Cmds entry won't work via `exec some-param-cmd`. (0.000s) + > unquote scripts-implicit/testscript.txt + > unquote scripts-explicit/testscript.txt + > testscript scripts-implicit + [stdout] + PASS + + > testscript scripts-explicit + [stdout] + PASS + + > ! testscript -explicit-exec scripts-implicit + [stdout] + > fprintargs stdout right + FAIL: $WORK/scripts-implicit/testscript.txt:1: use 'exec fprintargs' rather than 'fprintargs' (because RequireExplicitExec is enabled) + + > testscript -explicit-exec scripts-explicit + [stdout] + PASS + + PASS + +=== CONT TestScripts/regexpquote + testscript.go:558: > env XXX='hello)' + > grep ^${XXX@R}$ file.txt + PASS + +=== NAME TestScripts/testscript_duplicate_name + testscript.go:558: # Check that RequireUniqueNames works; + # it should reject txtar archives with duplicate names as defined by the host system. (0.000s) + > unquote scripts-normalized/testscript.txt + > testscript scripts-normalized + [stdout] + PASS + + > ! testscript -unique-names scripts-normalized + [stdout] + FAIL: $WORK/scripts-normalized/testscript.txt:0: dir/../file would overwrite $WORK/file (because RequireUniqueNames is enabled) + + > stdout '.* would overwrite .* \(because RequireUniqueNames is enabled\)' + PASS + +=== NAME TestScripts/testscript_notfound + testscript.go:558: # Check that unknown commands output a useful error message (0.000s) + > ! testscript notfound + [stdout] + > notexist + FAIL: $WORK/notfound/script.txt:1: unknown command "notexist" + + > stdout 'unknown command "notexist"' + > ! testscript negation + [stdout] + > !exists file + FAIL: $WORK/negation/script.txt:1: unknown command "!exists" (did you mean "! exists"?) + + > stdout 'unknown command "!exists" \(did you mean "! exists"\?\)' + > ! testscript misspelled + [stdout] + > exits file + FAIL: $WORK/misspelled/script.txt:1: unknown command "exits" (did you mean "exists"?) + + > stdout 'unknown command "exits" \(did you mean "exists"\?\)' + PASS + +=== NAME TestScripts/testscript_update_script + testscript.go:558: # Check that we support both txt and txtar extensions. (0.000s) + > unquote scripts/testscript.txt + > unquote testscript-new.txt + > cp scripts/testscript.txt scripts/testscript2.txtar + > testscript -update scripts + [stdout] + PASS + $WORK/scripts/testscript.txt updated + PASS + $WORK/scripts/testscript2.txtar updated + + > cmp scripts/testscript.txt testscript-new.txt + > cmp scripts/testscript2.txtar testscript-new.txt PASS === NAME TestScripts/big_diff @@ -5054,7 +5419,7 @@ > env WORK=$WORK - PATH=/tmp/testscript-main1733310255/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2191505172/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 @@ -5067,78 +5432,6 @@ > cmpenv stdout stdout.golden PASS -=== CONT TestScripts/cmpenv - testscript.go:558: > env $=$ - > cmpenv file1 file2 - PASS - -=== CONT TestScripts/cmd_stdout_stderr -=== NAME TestScripts/execguard - testscript.go:558: > [exec:nosuchcommand] exec nosuchcommand - > [!exec:cat] stop - > exec cat foo - [stdout] - foo - > stdout 'foo\n' - PASS - -=== CONT TestScripts/testscript_stdout_stderr_error -=== CONT TestScripts/wait -=== NAME TestScripts/hello - testscript.go:558: > [!exec:cat] stop - # hello world (0.000s) - > exec cat hello.text - [stdout] - hello world - > stdout 'hello world\n' - > ! stderr . - PASS - -=== CONT TestScripts/values - testscript.go:558: > test-values - PASS - -=== CONT TestScripts/testscript_update_script_stderr -=== NAME TestScripts/pty - testscript.go:558: > [!linux] [!darwin] skip - > [darwin] skip # https://go.dev/issue/61779 - > ttyin secretwords.txt - > terminalprompt - > ttyout 'magic words' - > ! stderr . - > ! stdout . - PASS - -=== NAME TestScripts/evalsymlink - testscript.go:558: # If ioutil.TempDir returns a sym linked dir (default behaviour in macOS for example) the - # matcher will have problems with external programs that uses the real path. - # This script tests that $WORK is matched in a consistent way (also see #79). (0.000s) - > [windows] skip - > exec pwd - [stdout] - $WORK - > stdout ^$WORK$ - > exec pwd -P - [stdout] - $WORK - > stdout ^$WORK$ - PASS - -=== CONT TestScripts/testscript_update_script_quote -=== CONT TestScripts/testscript_update_script_expected_not_in_archive -=== NAME TestScripts/readfile - testscript.go:558: > fprintargs stdout stdout - [stdout] - stdout - > testreadfile stdout - > fprintargs stderr stderr - [stderr] - stderr - > testreadfile stderr - > testreadfile x/somefile - PASS - -=== CONT TestScripts/testscript_update_script_actual_is_file === NAME TestScripts/testscript_stdout_stderr_error testscript.go:558: # Verify that stdout and stderr get set event when a user-builtin # command aborts. Note that we need to assert against stdout @@ -5159,150 +5452,6 @@ > cmpenv stdout stdout.golden PASS -=== NAME TestScripts/testscript_update_script_actual_is_file - testscript.go:558: > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript -update scripts - [stdout] - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt - PASS - -=== CONT TestScripts/setupfiles - testscript.go:558: # check that the Setup function saw the unarchived files, - # including the temp directory that's always created. (0.000s) - > setup-filenames .tmp a b - PASS - -=== CONT TestScripts/stdin -=== CONT TestScripts/testscript_update_script -=== NAME TestScripts/testscript_update_script_quote - testscript.go:558: > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript -update scripts - [stdout] - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt - PASS - -=== CONT TestScripts/setenv - testscript.go:558: > setSpecialVal - > exists $SPECIALVAL.txt - > ensureSpecialVal - PASS - -=== CONT TestScripts/testscript_logging -=== NAME TestScripts/testscript_update_script_stderr - testscript.go:558: > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript -update scripts - [stdout] - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt - PASS - -=== CONT TestScripts/testscript_notfound - testscript.go:558: # Check that unknown commands output a useful error message (0.000s) - > ! testscript notfound - [stdout] - > notexist - FAIL: $WORK/notfound/script.txt:1: unknown command "notexist" - - > stdout 'unknown command "notexist"' - > ! testscript negation - [stdout] - > !exists file - FAIL: $WORK/negation/script.txt:1: unknown command "!exists" (did you mean "! exists"?) - - > stdout 'unknown command "!exists" \(did you mean "! exists"\?\)' - > ! testscript misspelled - [stdout] - > exits file - FAIL: $WORK/misspelled/script.txt:1: unknown command "exits" (did you mean "exists"?) - - > stdout 'unknown command "exits" \(did you mean "exists"\?\)' - PASS - -=== CONT TestScripts/regexpquote - testscript.go:558: > env XXX='hello)' - > grep ^${XXX@R}$ file.txt - PASS - -=== CONT TestScripts/testscript_explicit_exec -=== NAME TestScripts/cpstdout - testscript.go:558: > [!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 - -=== CONT TestScripts/testscript_duplicate_name - testscript.go:558: # Check that RequireUniqueNames works; - # it should reject txtar archives with duplicate names as defined by the host system. (0.000s) - > unquote scripts-normalized/testscript.txt - > testscript scripts-normalized - [stdout] - PASS - - > ! testscript -unique-names scripts-normalized - [stdout] - FAIL: $WORK/scripts-normalized/testscript.txt:0: dir/../file would overwrite $WORK/file (because RequireUniqueNames is enabled) - - > stdout '.* would overwrite .* \(because RequireUniqueNames is enabled\)' - PASS - -=== NAME TestScripts/command - testscript.go:558: > printargs a b 'c d' - [stdout] - ["printargs" "a" "b" "c d"] - > stdout '\["printargs" "a" "b" "c d"\]\n' - PASS - -=== NAME TestScripts/testscript_update_script_expected_not_in_archive - testscript.go:558: # Verify that comparing stdout against a file not in the archive does nothing (0.000s) - > unquote scripts/testscript.txt - > cp scripts/testscript.txt unchanged - > ! testscript -update scripts - [stdout] - > fprintargs stdout right - [stdout] - right - > cp file expect - > cmp stdout expect - diff stdout expect - --- stdout - +++ expect - @@ -1,1 +1,1 @@ - -right - +wrong - - FAIL: $WORK/scripts/testscript.txt:3: stdout and expect differ - - > cmp scripts/testscript.txt unchanged - PASS - -=== NAME TestScripts/commandstatus - testscript.go:558: > ! status 1 - [exit status 1] - > ! status 2 - [exit status 2] - > status 0 - PASS - === NAME TestScripts/stdin testscript.go:558: > [!exec:cat] skip > stdin hello.txt @@ -5327,115 +5476,6 @@ > stdout hello PASS -=== NAME TestScripts/interrupt - testscript.go:558: > [windows] skip - > signalcatcher & - > waitfile catchsignal - > interrupt - > wait - [background] signalcatcher: exit status 0 - [stdout] - caught interrupt - > stdout 'caught interrupt' - PASS - -=== NAME TestScripts/testscript_update_script - testscript.go:558: # Check that we support both txt and txtar extensions. (0.000s) - > unquote scripts/testscript.txt - > unquote testscript-new.txt - > cp scripts/testscript.txt scripts/testscript2.txtar - > testscript -update scripts - [stdout] - PASS - $WORK/scripts/testscript.txt updated - PASS - $WORK/scripts/testscript2.txtar updated - - > cmp scripts/testscript.txt testscript-new.txt - > cmp scripts/testscript2.txtar testscript-new.txt - PASS - -=== NAME TestScripts/wait - testscript.go:558: > [!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 - -=== NAME TestScripts/testscript_explicit_exec - testscript.go:558: # Check that RequireExplicitExec works; - # it should reject `fprintargs` in favor of `exec fprintargs`, - # but it shouldn't complain about `some-param-cmd`, - # as that Params.Cmds entry won't work via `exec some-param-cmd`. (0.000s) - > unquote scripts-implicit/testscript.txt - > unquote scripts-explicit/testscript.txt - > testscript scripts-implicit - [stdout] - PASS - - > testscript scripts-explicit - [stdout] - PASS - - > ! testscript -explicit-exec scripts-implicit - [stdout] - > fprintargs stdout right - FAIL: $WORK/scripts-implicit/testscript.txt:1: use 'exec fprintargs' rather than 'fprintargs' (because RequireExplicitExec is enabled) - - > testscript -explicit-exec scripts-explicit - [stdout] - PASS - - PASS - === NAME TestScripts/cmd_stdout_stderr testscript.go:558: # Verify that when we don't update stdout when we don't attempt to write via Stdout() (0.000s) > fprintargs stdout hello stdout from fprintargs @@ -5610,48 +5650,48 @@ PASS --- PASS: TestScripts (0.00s) + --- PASS: TestScripts/values (0.00s) + --- PASS: TestScripts/cond (0.00s) + --- PASS: TestScripts/cmpenv (0.03s) + --- PASS: TestScripts/hello (0.03s) --- PASS: TestScripts/nothing (0.00s) + --- PASS: TestScripts/cpstdout (0.03s) + --- PASS: TestScripts/pty (0.03s) --- PASS: TestScripts/defer (0.00s) - --- PASS: TestScripts/long_diff (0.00s) --- PASS: TestScripts/exists (0.00s) - --- PASS: TestScripts/cond (0.04s) - --- PASS: TestScripts/cmpenv (0.00s) - --- PASS: TestScripts/big_diff (0.07s) - --- PASS: TestScripts/execguard (0.06s) - --- PASS: TestScripts/hello (0.06s) - --- PASS: TestScripts/values (0.00s) - --- PASS: TestScripts/pty (0.07s) - --- PASS: TestScripts/evalsymlink (0.06s) - --- PASS: TestScripts/readfile (0.07s) - --- PASS: TestScripts/testscript_stdout_stderr_error (0.01s) - --- PASS: TestScripts/testscript_update_script_actual_is_file (0.01s) - --- PASS: TestScripts/setupfiles (0.00s) + --- PASS: TestScripts/long_diff (0.00s) + --- PASS: TestScripts/command (0.03s) + --- PASS: TestScripts/evalsymlink (0.04s) + --- PASS: TestScripts/execguard (0.00s) + --- PASS: TestScripts/readfile (0.04s) + --- PASS: TestScripts/testscript_update_script_stderr (0.01s) + --- PASS: TestScripts/testscript_update_script_actual_is_file (0.00s) + --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.01s) --- PASS: TestScripts/testscript_update_script_quote (0.01s) --- PASS: TestScripts/setenv (0.00s) - --- PASS: TestScripts/testscript_update_script_stderr (0.02s) - --- PASS: TestScripts/testscript_notfound (0.00s) + --- PASS: TestScripts/interrupt (0.05s) + --- PASS: TestScripts/wait (0.05s) + --- PASS: TestScripts/setupfiles (0.00s) + --- PASS: TestScripts/testscript_explicit_exec (0.01s) --- PASS: TestScripts/regexpquote (0.00s) - --- PASS: TestScripts/cpstdout (0.10s) --- PASS: TestScripts/testscript_duplicate_name (0.00s) - --- PASS: TestScripts/command (0.10s) - --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.03s) - --- PASS: TestScripts/commandstatus (0.10s) - --- PASS: TestScripts/stdin (0.03s) - --- PASS: TestScripts/interrupt (0.11s) - --- PASS: TestScripts/testscript_update_script (0.03s) - --- PASS: TestScripts/wait (0.05s) - --- PASS: TestScripts/testscript_explicit_exec (0.04s) - --- PASS: TestScripts/cmd_stdout_stderr (0.08s) - --- PASS: TestScripts/testscript_logging (0.21s) - --- PASS: TestScripts/exec_path_change (8.47s) + --- PASS: TestScripts/testscript_notfound (0.01s) + --- PASS: TestScripts/testscript_update_script (0.01s) + --- PASS: TestScripts/big_diff (0.05s) + --- PASS: TestScripts/commandstatus (0.05s) + --- PASS: TestScripts/testscript_stdout_stderr_error (0.01s) + --- PASS: TestScripts/stdin (0.01s) + --- PASS: TestScripts/cmd_stdout_stderr (0.03s) + --- PASS: TestScripts/testscript_logging (0.06s) + --- PASS: TestScripts/exec_path_change (4.63s) === RUN TestTestwork ---- PASS: TestTestwork (2.29s) +--- PASS: TestTestwork (1.26s) === RUN TestWorkdirRoot === RUN TestWorkdirRoot/run_tests === RUN TestWorkdirRoot/run_tests/nothing === PAUSE TestWorkdirRoot/run_tests/nothing === CONT TestWorkdirRoot/run_tests/nothing - testscript.go:558: WORK=/tmp/3913659147/script-nothing + testscript.go:558: WORK=/tmp/2060767276/script-nothing # Intentionally empty test script; used to test Params.WorkdirRoot (0.000s) PASS @@ -5663,7 +5703,7 @@ === RUN TestUNIX2DOS --- PASS: TestUNIX2DOS (0.00s) PASS -ok github.com/rogpeppe/go-internal/testscript 10.856s +ok github.com/rogpeppe/go-internal/testscript 5.902s ? github.com/rogpeppe/go-internal/testscript/internal/pty [no test files] === RUN Test === RUN Test/basic @@ -5692,7 +5732,7 @@ --- PASS: TestQuote/bad_data (0.00s) --- PASS: TestQuote/no_final_newline (0.00s) PASS -ok github.com/rogpeppe/go-internal/txtar 0.048s +ok github.com/rogpeppe/go-internal/txtar 0.005s patch -R -p1 -i debian/0001-Allow-TestSimple-cover-to-PASS.patch patching file _build/src/github.com/rogpeppe/go-internal/testscript/testscript.go Hunk #1 succeeded at 1155 (offset 57 lines). @@ -5721,8 +5761,8 @@ dh_gencontrol -O--builddirectory=_build -O--buildsystem=golang 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.12.0-3_all.deb'. dpkg-deb: building package 'go-internal' in '../go-internal_1.12.0-3_arm64.deb'. +dpkg-deb: building package 'golang-github-rogpeppe-go-internal-dev' in '../golang-github-rogpeppe-go-internal-dev_1.12.0-3_all.deb'. dpkg-deb: building package 'go-internal-dbgsym' in '../go-internal-dbgsym_1.12.0-3_arm64.deb'. dpkg-genbuildinfo --build=binary -O../golang-github-rogpeppe-go-internal_1.12.0-3_arm64.buildinfo dpkg-genchanges --build=binary -O../golang-github-rogpeppe-go-internal_1.12.0-3_arm64.changes @@ -5731,12 +5771,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/1316705/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1316705/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/1303965 and its subdirectories -I: Current time: Sat Sep 6 03:26:51 -12 2025 -I: pbuilder-time-stamp: 1757172411 +I: removing directory /srv/workspace/pbuilder/1316705 and its subdirectories +I: Current time: Sat Oct 10 11:51:04 +14 2026 +I: pbuilder-time-stamp: 1791582664