Diff of the two buildlogs: -- --- b1/build.log 2025-03-16 08:27:02.706559784 +0000 +++ b2/build.log 2025-03-16 08:28:25.006834939 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Mar 15 20:15:42 -12 2025 -I: pbuilder-time-stamp: 1742112942 +I: Current time: Sun Apr 19 04:50:04 +14 2026 +I: pbuilder-time-stamp: 1776523804 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -24,52 +24,84 @@ dpkg-source: info: applying 246.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1373386/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1917008/tmp/hooks/D01_modify_environment starting +debug: Running on ionos15-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Apr 18 14: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/1917008/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1917008/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-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=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='912f2f0ff3f4446b8a85c216ab044f4c' - 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='1373386' - PS1='# ' - PS2='> ' + INVOCATION_ID=c6c98c802b0049c19ecc081b0ec49229 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=1917008 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.sb3UK3HL/pbuilderrc_WVYf --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.sb3UK3HL/b1 --logfile b1/build.log golang-github-rogpeppe-go-internal_1.12.0-3.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132: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.sb3UK3HL/pbuilderrc_wgwJ --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.sb3UK3HL/b2 --logfile b2/build.log golang-github-rogpeppe-go-internal_1.12.0-3.dsc' + SUDO_GID=111 + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos1-amd64 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.12-1~bpo12+1 (2025-02-23) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Mar 4 11:20 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1373386/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Mar 4 2025 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1917008/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -164,7 +196,7 @@ Get: 45 http://deb.debian.org/debian unstable/main amd64 golang-golang-x-net-dev all 1:0.27.0-1 [898 kB] Get: 46 http://deb.debian.org/debian unstable/main amd64 golang-golang-x-sync-dev all 0.7.0-1 [19.0 kB] Get: 47 http://deb.debian.org/debian unstable/main amd64 golang-golang-x-tools-dev all 1:0.25.0+ds-1 [1608 kB] -Fetched 81.2 MB in 5s (15.1 MB/s) +Fetched 81.2 MB in 2s (33.6 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 ... 19785 files and directories currently installed.) @@ -374,7 +406,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/1917008/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/1917008/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 @@ -392,226 +428,226 @@ dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang dh_auto_build -O--builddirectory=_build -O--buildsystem=golang - cd _build && go install -trimpath -v -p 20 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/diff github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/misspell github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/robustio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/testscript/internal/pty github.com/rogpeppe/go-internal/txtar -internal/goarch -internal/itoa -internal/unsafeheader + cd _build && go install -trimpath -v -p 42 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/diff github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/misspell github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/robustio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/testscript/internal/pty github.com/rogpeppe/go-internal/txtar +internal/godebugs +internal/goversion unicode/utf8 +internal/nettrace +internal/byteorder +internal/goos +internal/profilerecord +internal/unsafeheader +encoding +internal/coverage/rtcov cmp -internal/msan -unicode +vendor/golang.org/x/crypto/internal/alias +internal/goarch crypto/internal/fips140/alias -internal/byteorder +internal/msan +math/bits +internal/itoa internal/goexperiment -sync/atomic -internal/runtime/atomic -internal/goos +internal/syslist +unicode/utf16 +vendor/golang.org/x/crypto/cryptobyte/asn1 crypto/internal/boring/sig -internal/coverage/rtcov -internal/runtime/syscall +internal/platform +github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll log/internal -math/bits -internal/abi +unicode +github.com/rogpeppe/go-internal/internal/syscall/windows internal/asan -internal/profilerecord +container/list +internal/runtime/syscall internal/cpu -internal/godebugs +sync/atomic +internal/runtime/atomic internal/runtime/math crypto/internal/fips140/subtle -encoding -unicode/utf16 -internal/nettrace internal/runtime/sys -container/list -vendor/golang.org/x/crypto/cryptobyte/asn1 -vendor/golang.org/x/crypto/internal/alias -github.com/rogpeppe/go-internal/internal/misspell -internal/chacha8rand +internal/abi crypto/internal/fips140deps/byteorder -internal/goversion -internal/platform -internal/syslist -github.com/rogpeppe/go-internal/internal/syscall/windows -github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll -internal/runtime/exithook -internal/bytealg +internal/chacha8rand +github.com/rogpeppe/go-internal/internal/misspell crypto/internal/fips140deps/cpu +internal/bytealg math +internal/runtime/exithook internal/stringslite internal/race -internal/runtime/maps internal/sync +internal/runtime/maps runtime -weak iter -internal/reflectlite crypto/subtle +weak +internal/reflectlite sync maps slices -sort errors -internal/oserror -vendor/golang.org/x/net/dns/dnsmessage -path -math/rand/v2 -strconv +sort internal/bisect -internal/testlog internal/singleflight +internal/testlog unique -io -syscall runtime/cgo +internal/oserror +io +strconv +path internal/godebug -golang.org/x/mod/semver +math/rand/v2 +vendor/golang.org/x/net/dns/dnsmessage +bytes +syscall hash crypto/internal/randutil +golang.org/x/mod/semver strings -bytes -crypto/internal/fips140deps/godebug hash/crc32 -math/rand github.com/rogpeppe/go-internal/semver crypto net/netip reflect -github.com/rogpeppe/go-internal/par +crypto/internal/fips140deps/godebug +math/rand vendor/golang.org/x/text/transform -crypto/internal/fips140 +github.com/rogpeppe/go-internal/par crypto/internal/impl -net/http/internal/ascii bufio +net/http/internal/ascii go/build/constraint +crypto/internal/fips140 regexp/syntax crypto/tls/internal/fips140tls -crypto/internal/fips140/sha512 crypto/internal/fips140/sha3 crypto/internal/fips140/sha256 -internal/syscall/unix -internal/syscall/execenv -time +crypto/internal/fips140/sha512 crypto/sha3 crypto/internal/fips140/hmac crypto/internal/fips140/check crypto/internal/fips140hash crypto/internal/fips140/hkdf crypto/internal/fips140/tls12 -crypto/internal/fips140/bigmod crypto/internal/fips140/edwards25519/field +crypto/internal/fips140/bigmod crypto/internal/fips140/aes crypto/internal/fips140/nistec/fiat +internal/syscall/execenv crypto/internal/fips140/tls13 +internal/syscall/unix +time regexp crypto/internal/fips140/edwards25519 context io/fs internal/poll -internal/filepathlite crypto/internal/fips140/nistec -os -github.com/rogpeppe/go-internal/fmtsort -encoding/binary +internal/filepathlite internal/fmtsort +encoding/binary +github.com/rogpeppe/go-internal/fmtsort +os +encoding/base64 +vendor/golang.org/x/crypto/internal/poly1305 +encoding/pem crypto/internal/sysrand -internal/sysinfo -vendor/golang.org/x/sys/cpu -fmt -github.com/rogpeppe/go-internal/robustio github.com/rogpeppe/go-internal/lockedfile/internal/filelock -internal/lazyregexp golang.org/x/mod/internal/lazyregexp io/ioutil +internal/lazyregexp +internal/sysinfo +github.com/rogpeppe/go-internal/robustio +fmt path/filepath -vendor/golang.org/x/crypto/internal/poly1305 -encoding/base64 +vendor/golang.org/x/sys/cpu net crypto/internal/entropy crypto/internal/fips140/drbg -encoding/pem crypto/internal/fips140only crypto/internal/fips140/ecdh -crypto/internal/fips140/ed25519 crypto/internal/fips140/mlkem -crypto/internal/fips140/rsa +crypto/internal/fips140/ecdsa crypto/internal/fips140/aes/gcm +crypto/internal/fips140/ed25519 +crypto/internal/fips140/rsa github.com/rogpeppe/go-internal/renameio os/exec -crypto/internal/fips140/ecdsa crypto/rc4 crypto/md5 -github.com/rogpeppe/go-internal/internal/os/execpath -internal/goroot crypto/cipher +internal/goroot +github.com/rogpeppe/go-internal/internal/os/execpath +encoding/hex +flag log golang.org/x/mod/module -github.com/rogpeppe/go-internal/lockedfile +runtime/debug +github.com/rogpeppe/go-internal/imports +encoding/json golang.org/x/tools/txtar +net/url mime/quotedprintable -flag net/http/internal +internal/buildcfg vendor/golang.org/x/net/http2/hpack -net/url -encoding/json -encoding/hex -github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/diff mime compress/flate -vendor/golang.org/x/text/unicode/norm -math/big -runtime/debug +go/token github.com/rogpeppe/go-internal/testscript/internal/pty runtime/trace -crypto/internal/boring +github.com/rogpeppe/go-internal/lockedfile +go/doc/comment +vendor/golang.org/x/text/unicode/norm +math/big crypto/des -go/token +crypto/internal/boring vendor/golang.org/x/crypto/chacha20 crypto/sha256 -crypto/aes -github.com/rogpeppe/go-internal/txtar -go/doc/comment crypto/sha512 -crypto/ecdh crypto/hmac -github.com/rogpeppe/go-internal/cache +crypto/aes +crypto/ecdh crypto/sha1 +github.com/rogpeppe/go-internal/txtar +vendor/golang.org/x/crypto/chacha20poly1305 +github.com/rogpeppe/go-internal/module golang.org/x/mod/modfile -internal/buildcfg +go/scanner vendor/golang.org/x/text/unicode/bidi -github.com/rogpeppe/go-internal/module -vendor/golang.org/x/crypto/chacha20poly1305 +github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/cmd/txtar-c -testing -go/scanner +go/ast compress/gzip archive/zip -go/ast vendor/golang.org/x/text/secure/bidirule -github.com/rogpeppe/go-internal/modfile vendor/golang.org/x/net/idna -go/parser -go/doc +github.com/rogpeppe/go-internal/modfile +testing crypto/rand crypto/internal/boring/bbig crypto/dsa crypto/elliptic encoding/asn1 +github.com/rogpeppe/go-internal/dirhash +go/doc crypto/internal/hpke crypto/ed25519 +go/parser crypto/rsa -github.com/rogpeppe/go-internal/dirhash +github.com/rogpeppe/go-internal/testenv crypto/x509/pkix vendor/golang.org/x/crypto/cryptobyte -github.com/rogpeppe/go-internal/testenv -crypto/ecdsa go/build +crypto/ecdsa github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/gotooltest -net/textproto vendor/golang.org/x/net/http/httpproxy +net/textproto crypto/x509 vendor/golang.org/x/net/http/httpguts mime/multipart @@ -619,34 +655,34 @@ net/http/httptrace net/http github.com/rogpeppe/go-internal/goproxytest -github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/testscript +github.com/rogpeppe/go-internal/cmd/txtar-goproxy debian/rules override_dh_auto_test make[1]: Entering directory '/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0' patch -N -p1 -i debian/0001-Allow-TestSimple-cover-to-PASS.patch patching file _build/src/github.com/rogpeppe/go-internal/testscript/testscript.go Hunk #1 succeeded at 1155 (offset 57 lines). GOPROXY= dh_auto_test - cd _build && go test -vet=off -v -p 20 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/diff github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/misspell github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/robustio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/testscript/internal/pty github.com/rogpeppe/go-internal/txtar + cd _build && go test -vet=off -v -p 42 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/diff github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/misspell github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/robustio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/testscript/internal/pty github.com/rogpeppe/go-internal/txtar === RUN TestBasic ---- PASS: TestBasic (0.10s) +--- PASS: TestBasic (0.02s) === RUN TestGrowth ---- PASS: TestGrowth (7.51s) +--- PASS: TestGrowth (1.06s) === RUN TestVerifyPanic cache_test.go:138: go: internal cache error: cache verify failed: id=0100000000000000000000000000000000000000000000000000000000000000 changed:<<< >>> old: cb8379ac2098aa165029e3938a51da0bcecfc008fd6795f401178647f96c5b34 3 new: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad 3 ---- PASS: TestVerifyPanic (0.06s) +--- PASS: TestVerifyPanic (0.02s) === RUN TestCacheTrim ---- PASS: TestCacheTrim (0.11s) +--- PASS: TestCacheTrim (0.77s) === RUN TestHash --- PASS: TestHash (0.00s) === RUN TestHashFile --- PASS: TestHashFile (0.00s) PASS -ok github.com/rogpeppe/go-internal/cache 7.836s +ok github.com/rogpeppe/go-internal/cache 1.876s === RUN TestScripts === RUN TestScripts/continue === PAUSE TestScripts/continue @@ -673,70 +709,20 @@ === RUN TestScripts/work === PAUSE TestScripts/work === CONT TestScripts/continue -=== CONT TestScripts/nogo === CONT TestScripts/skip -=== CONT TestScripts/simple === CONT TestScripts/work -=== CONT TestScripts/noproxy -=== CONT TestScripts/update === CONT TestScripts/help -=== CONT TestScripts/error +=== CONT TestScripts/update +=== CONT TestScripts/env_var_with_go === CONT TestScripts/env_var_no_go -=== NAME TestScripts/nogo - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - GOPATH=$WORK/.gopath - CCACHE_DISABLE=1 - GOARCH=amd64 - GOOS=linux - GOROOT=/usr/lib/go-1.24 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.24 - GOINTERNALMODPATH=. - GONOSUMDB=* - - # should support skip (0.000s) - > unquote file.txt - # We can't just set PATH to empty because we need the part of it that - # contains the command names, so use a special builtin instead. (0.070s) - > dropgofrompath - > ! testscript -v file.txt - [stdout] - WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/sbin:/sbin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - - > go env - FAIL: $WORK/.tmp/testscript1036035591/file.txt/script.txtar:1: unknown command "go" - [stderr] - error running file.txt in $WORK/.tmp/testscript1036035591/file.txt - - [exit status 1] - > stdout 'unknown command "go"' - > stderr 'error running file.txt in' - PASS - === CONT TestScripts/env_values -=== CONT TestScripts/env_var_with_go +=== CONT TestScripts/error +=== CONT TestScripts/noproxy +=== CONT TestScripts/simple +=== CONT TestScripts/nogo === NAME TestScripts/help testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -756,7 +742,7 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # Simply sanity check on help output (0.105s) + # Simply sanity check on help output (0.004s) > ! testscript -help [stderr] The testscript command runs github.com/rogpeppe/go-internal/testscript scripts @@ -886,9 +872,59 @@ > stderr 'Examples' PASS +=== NAME TestScripts/nogo + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main1381832871/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + GOPATH=$WORK/.gopath + CCACHE_DISABLE=1 + GOARCH=amd64 + GOOS=linux + GOROOT=/usr/lib/go-1.24 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.24 + GOINTERNALMODPATH=. + GONOSUMDB=* + + # should support skip (0.005s) + > 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.048s) + > dropgofrompath + > ! testscript -v file.txt + [stdout] + WORK=$WORK + PATH=/tmp/testscript-main1381832871/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + + > go env + FAIL: $WORK/.tmp/testscript3873520311/file.txt/script.txtar:1: unknown command "go" + [stderr] + error running file.txt in $WORK/.tmp/testscript3873520311/file.txt + + [exit status 1] + > stdout 'unknown command "go"' + > stderr 'error running file.txt in' + PASS + === NAME TestScripts/env_var_no_go testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -910,18 +946,18 @@ # Test passing environment variables to scripts with no go command on PATH # - # This is the counterpart to env_var_with_go.txt (0.001s) + # This is the counterpart to env_var_with_go.txt (0.008s) > unquote noproxy.txt > unquote withproxy.txt > dropgofrompath > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= - # no GOPROXY, no pass-through, no proxy (0.088s) + # no GOPROXY, no pass-through, no proxy (0.049s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1381832871/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -942,11 +978,11 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.104s) + # no GOPROXY, no pass-through, with proxy (0.008s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1381832871/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -955,7 +991,7 @@ :=: $=$ exe= - GOPROXY=http://127.0.0.1:36063/mod + GOPROXY=http://127.0.0.1:33677/mod GONOSUMDB=* > env BANANA @@ -963,17 +999,17 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:36063/mod + GOPROXY=http://127.0.0.1:33677/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.091s) + # no GOPROXY, with pass-through, no proxy (0.005s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1381832871/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -997,11 +1033,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.055s) + # no GOPROXY, with pass-through, with proxy (0.007s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1381832871/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1027,11 +1063,11 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.041s) + # with GOPROXY, no pass-through, no proxy (0.005s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1381832871/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1052,11 +1088,11 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # with GOPROXY, no pass-through, with proxy (0.044s) + # with GOPROXY, no pass-through, with proxy (0.006s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1381832871/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1065,7 +1101,7 @@ :=: $=$ exe= - GOPROXY=http://127.0.0.1:41365/mod + GOPROXY=http://127.0.0.1:38317/mod GONOSUMDB=* > env BANANA @@ -1073,17 +1109,17 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:41365/mod + GOPROXY=http://127.0.0.1:38317/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.068s) + # 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-main2282858966/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1381832871/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1107,11 +1143,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, with pass-through, with proxy (0.064s) + # with GOPROXY, with pass-through, with proxy (0.006s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main1381832871/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1140,7 +1176,7 @@ === NAME TestScripts/continue testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1160,21 +1196,21 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # should support -continue (0.000s) + # should support -continue (0.009s) > unquote file.txt # Running with continue, the testscript command itself # should fail, but we should see the results of executing - # both commands. (2.192s) + # both commands. (0.143s) > ! testscript -continue file.txt [stdout] > grep banana in [in] apple - FAIL: $WORK/.tmp/testscript2737754149/file.txt/script.txtar:1: no match for `banana` found in in + FAIL: $WORK/.tmp/testscript3515361301/file.txt/script.txtar:1: no match for `banana` found in in > grep apple in [stderr] - error running file.txt in $WORK/.tmp/testscript2737754149/file.txt + error running file.txt in $WORK/.tmp/testscript3515361301/file.txt [exit status 1] > stdout 'grep banana in' @@ -1182,9 +1218,9 @@ > stdout 'grep apple in' PASS -=== NAME TestScripts/skip +=== NAME TestScripts/work testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1204,12 +1240,18 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # should support skip (2.209s) - > unquote file.txt - > testscript -v file.txt + # Test that passing -work leaves behind the working directory + # that contains the temporary directories within which the + # script arguments are expanded. + # + # This test also covers the use of multiple scripts which share + # the same basename, ensuring that the naming of the directories + # within the working directory. (0.154s) + > unquote file.txt dir/file.txt + > testscript -v -work file.txt dir/file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1227,18 +1269,10 @@ GOPROXY=https://proxy.golang.org,direct goversion=1.24 - > go version - [stdout] - go version go1.24.1 linux/amd64 - - > skip - > stdout 'go version' - > ! stderr .+ + > exec true PASS - -=== NAME TestScripts/update - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + WORK=$WORK + PATH=/tmp/testscript-main1381832871/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 @@ -1255,31 +1289,23 @@ 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 the -update flag (0.000s) - > unquote in.txt res.txt - # Should be an error to use -u with only stdin (0.132s) - > stdin in.txt - > ! testscript -u - [stderr] - cannot use -u when reading from stdin - [exit status 1] - > stderr 'cannot use -u when reading from stdin' - # It is ok to use -u when reading from stdin and - # a regular file (2.076s) - > testscript -u - in.txt - [stdout] - PASS + > exec true PASS - $WORK/.tmp/testscript3598441396/in.txt/script.txtar updated - > cmp in.txt res.txt + [stderr] + temporary work directory: $WORK/.tmp/testscript1383625777 + temporary work directory for file.txt: $WORK/.tmp/go-test-script3317119664/script-script + temporary work directory for dir/file.txt: $WORK/.tmp/go-test-script3400595762/script-script + > stderr '^temporary work directory: \Q'$WORK'\E[/\\]\.tmp[/\\]' + > stderr '^temporary work directory for file.txt: \Q'$WORK'\E[/\\]\.tmp[/\\]' + > stderr '^temporary work directory for dir[/\\]file.txt: \Q'$WORK'\E[/\\]\.tmp[/\\]' + > expandone $WORK/.tmp/testscript*/file.txt/script.txtar + > expandone $WORK/.tmp/testscript*/file.txt1/script.txtar PASS -=== NAME TestScripts/work +=== NAME TestScripts/skip testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1299,18 +1325,12 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # Test that passing -work leaves behind the working directory - # that contains the temporary directories within which the - # script arguments are expanded. - # - # This test also covers the use of multiple scripts which share - # the same basename, ensuring that the naming of the directories - # within the working directory. (2.263s) - > unquote file.txt dir/file.txt - > testscript -v -work file.txt dir/file.txt + # should support skip (0.155s) + > unquote file.txt + > testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1328,43 +1348,18 @@ GOPROXY=https://proxy.golang.org,direct goversion=1.24 - > exec true - PASS - WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - GOPATH=$WORK/.gopath - CCACHE_DISABLE=1 - GOARCH=amd64 - GOOS=linux - GOROOT=/usr/lib/go-1.24 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.24 + > go version + [stdout] + go version go1.24.1 linux/amd64 - > exec true - PASS - [stderr] - temporary work directory: $WORK/.tmp/testscript3555513099 - temporary work directory for file.txt: $WORK/.tmp/go-test-script3339545722/script-script - temporary work directory for dir/file.txt: $WORK/.tmp/go-test-script2523182408/script-script - > stderr '^temporary work directory: \Q'$WORK'\E[/\\]\.tmp[/\\]' - > stderr '^temporary work directory for file.txt: \Q'$WORK'\E[/\\]\.tmp[/\\]' - > stderr '^temporary work directory for dir[/\\]file.txt: \Q'$WORK'\E[/\\]\.tmp[/\\]' - > expandone $WORK/.tmp/testscript*/file.txt/script.txtar - > expandone $WORK/.tmp/testscript*/file.txt1/script.txtar + > skip + > stdout 'go version' + > ! stderr .+ PASS === NAME TestScripts/noproxy testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1387,13 +1382,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. (2.332s) + # where older versions used double quotes. (0.157s) > env GOPROXY=0.1.2.3 > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1436,7 +1431,7 @@ GOEXPERIMENT='' GOFIPS140='off' GOFLAGS='' - GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build4214814191=/tmp/go-build -gno-record-gcc-switches' + GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build4244096210=/tmp/go-build -gno-record-gcc-switches' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' @@ -1465,9 +1460,52 @@ PASS PASS +=== NAME TestScripts/env_values + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main1381832871/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + GOPATH=$WORK/.gopath + CCACHE_DISABLE=1 + GOARCH=amd64 + GOOS=linux + GOROOT=/usr/lib/go-1.24 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.24 + GOINTERNALMODPATH=. + GONOSUMDB=* + + # Test that passing env values, e.g. ENV1=val, works (0.007s) + > unquote test.txt + > env BLAH1= + > env BLAH2=junk + # Normal operation (0.146s) + > 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.037s) + > ! testscript -e BLAH1=rubbish -e BLAH2 -e WORK test.txt + [stdout] + FAIL: $WORK/.tmp/testscript1858914875/test.txt/script.txtar:0: cannot override WORK variable + [stderr] + error running test.txt in $WORK/.tmp/testscript1858914875/test.txt + + [exit status 1] + > stdout 'cannot override WORK variable' + PASS + === NAME TestScripts/error testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1487,14 +1525,14 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # should support skip (0.000s) + # should support skip (0.006s) > unquote file.txt - # stdin (2.178s) + # stdin (0.144s) > stdin file.txt > ! testscript -v [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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,17 +1552,17 @@ > exec false [exit status 1] - FAIL: $WORK/.tmp/testscript352468054/-/script.txtar:1: unexpected command failure + FAIL: $WORK/.tmp/testscript4210925366/-/script.txtar:1: unexpected command failure [stderr] - error running in $WORK/.tmp/testscript352468054/- + error running in $WORK/.tmp/testscript4210925366/- [exit status 1] > stderr 'error running in' - # file-based (0.177s) + # file-based (0.039s) > ! testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1544,17 +1582,58 @@ > exec false [exit status 1] - FAIL: $WORK/.tmp/testscript2664772555/file.txt/script.txtar:1: unexpected command failure + FAIL: $WORK/.tmp/testscript1844961010/file.txt/script.txtar:1: unexpected command failure [stderr] - error running file.txt in $WORK/.tmp/testscript2664772555/file.txt + error running file.txt in $WORK/.tmp/testscript1844961010/file.txt [exit status 1] > stderr 'error running file.txt in' PASS +=== NAME TestScripts/update + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main1381832871/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + GOPATH=$WORK/.gopath + CCACHE_DISABLE=1 + GOARCH=amd64 + GOOS=linux + GOROOT=/usr/lib/go-1.24 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.24 + GOINTERNALMODPATH=. + GONOSUMDB=* + + # should support the -update flag (0.009s) + > unquote in.txt res.txt + # Should be an error to use -u with only stdin (0.047s) + > stdin in.txt + > ! testscript -u + [stderr] + cannot use -u when reading from stdin + [exit status 1] + > stderr 'cannot use -u when reading from stdin' + # It is ok to use -u when reading from stdin and + # a regular file (0.221s) + > testscript -u - in.txt + [stdout] + PASS + PASS + $WORK/.tmp/testscript1368334508/in.txt/script.txtar updated + > cmp in.txt res.txt + PASS + === NAME TestScripts/simple testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1575,13 +1654,13 @@ GONOSUMDB=* # With .gomodproxy supporting files, any GOPROXY from the - # environment should be overridden by the test proxy. (2.444s) + # environment should be overridden by the test proxy. (0.402s) > env GOPROXY=0.1.2.3 > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1596,7 +1675,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:41805/mod + GOPROXY=http://127.0.0.1:33753/mod goversion=1.24 GONOSUMDB=* @@ -1622,52 +1701,9 @@ > ! stderr .+ PASS -=== NAME TestScripts/env_values - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - GOPATH=$WORK/.gopath - CCACHE_DISABLE=1 - GOARCH=amd64 - GOOS=linux - GOROOT=/usr/lib/go-1.24 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.24 - GOINTERNALMODPATH=. - GONOSUMDB=* - - # Test that passing env values, e.g. ENV1=val, works (0.001s) - > unquote test.txt - > env BLAH1= - > env BLAH2=junk - # Normal operation (2.098s) - > 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.362s) - > ! testscript -e BLAH1=rubbish -e BLAH2 -e WORK test.txt - [stdout] - FAIL: $WORK/.tmp/testscript3144634104/test.txt/script.txtar:0: cannot override WORK variable - [stderr] - error running test.txt in $WORK/.tmp/testscript3144634104/test.txt - - [exit status 1] - > stdout 'cannot override WORK variable' - PASS - === NAME TestScripts/env_var_with_go testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1693,14 +1729,14 @@ # the string literal $WORK because testscript rewrites the actual directory # to $WORK. Hence we don't want to expand this script's $WORK in such a comparison. # - # This is the counterpart to env_var_no_go.txt (0.001s) + # This is the counterpart to env_var_no_go.txt (0.009s) > unquote noproxy.txt > unquote withproxy.txt - # Baseline (2.103s) + # Baseline (0.142s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1732,11 +1768,11 @@ > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= - # no GOPROXY, no pass-through, no proxy (0.376s) + # no GOPROXY, no pass-through, no proxy (0.042s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1765,11 +1801,11 @@ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=https://proxy.golang.org,direct$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.544s) + # no GOPROXY, no pass-through, with proxy (0.038s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1784,7 +1820,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:46023/mod + GOPROXY=http://127.0.0.1:44229/mod goversion=1.24 GONOSUMDB=* @@ -1793,17 +1829,17 @@ > env GOPATH GOPATH=$WORK/.gopath > env GOPROXY - GOPROXY=http://127.0.0.1:46023/mod + GOPROXY=http://127.0.0.1:44229/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.284s) + # no GOPROXY, with pass-through, no proxy (0.048s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1833,11 +1869,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.289s) + # no GOPROXY, with pass-through, with proxy (0.047s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1869,11 +1905,11 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.371s) + # with GOPROXY, no pass-through, no proxy (0.040s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1902,11 +1938,11 @@ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, no pass-through, with proxy (0.533s) + # with GOPROXY, no pass-through, with proxy (0.038s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1921,7 +1957,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:35309/mod + GOPROXY=http://127.0.0.1:38547/mod goversion=1.24 GONOSUMDB=* @@ -1930,17 +1966,17 @@ > env GOPATH GOPATH=$WORK/.gopath > env GOPROXY - GOPROXY=http://127.0.0.1:35309/mod + GOPROXY=http://127.0.0.1:38547/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.416s) + # with GOPROXY, with pass-through, no proxy (0.050s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -1970,11 +2006,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, with pass-through, with proxy (0.384s) + # with GOPROXY, with pass-through, with proxy (0.043s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main2282858966/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1381832871/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 @@ -2007,21 +2043,21 @@ > ! stderr .+ PASS ---- PASS: TestScripts (0.45s) - --- PASS: TestScripts/nogo (0.07s) - --- PASS: TestScripts/help (0.13s) - --- PASS: TestScripts/env_var_no_go (0.56s) - --- PASS: TestScripts/continue (2.20s) - --- PASS: TestScripts/skip (2.21s) - --- PASS: TestScripts/update (2.21s) - --- PASS: TestScripts/work (2.27s) - --- PASS: TestScripts/noproxy (2.34s) - --- PASS: TestScripts/error (2.36s) - --- PASS: TestScripts/simple (2.45s) - --- PASS: TestScripts/env_values (2.51s) - --- PASS: TestScripts/env_var_with_go (5.33s) +--- PASS: TestScripts (0.04s) + --- PASS: TestScripts/help (0.01s) + --- PASS: TestScripts/nogo (0.05s) + --- PASS: TestScripts/env_var_no_go (0.10s) + --- PASS: TestScripts/continue (0.15s) + --- PASS: TestScripts/work (0.16s) + --- PASS: TestScripts/skip (0.16s) + --- PASS: TestScripts/noproxy (0.16s) + --- PASS: TestScripts/env_values (0.19s) + --- PASS: TestScripts/error (0.19s) + --- PASS: TestScripts/update (0.28s) + --- PASS: TestScripts/simple (0.40s) + --- PASS: TestScripts/env_var_with_go (0.50s) PASS -ok github.com/rogpeppe/go-internal/cmd/testscript 5.912s +ok github.com/rogpeppe/go-internal/cmd/testscript 0.541s === RUN TestScripts === RUN TestScripts/encode === PAUSE TestScripts/encode @@ -2032,11 +2068,11 @@ === CONT TestScripts/encode === 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 +go proxy: no archive github.com/shurcooL v0.0.0-20171119174359-809beceb2371 === NAME TestScripts/encode testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1080870619/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2660185764/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 @@ -2051,7 +2087,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:33353/mod + GOPROXY=http://127.0.0.1:33959/mod goversion=1.24 GONOSUMDB=* @@ -2064,7 +2100,7 @@ === NAME TestScripts/to_stdout testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1080870619/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2660185764/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 @@ -2079,7 +2115,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:33353/mod + GOPROXY=http://127.0.0.1:33959/mod goversion=1.24 GONOSUMDB=* @@ -2106,7 +2142,7 @@ === NAME TestScripts/txtar-addmod-self testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1080870619/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2660185764/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 @@ -2121,7 +2157,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:33353/mod + GOPROXY=http://127.0.0.1:33959/mod goversion=1.24 GONOSUMDB=* @@ -2135,12 +2171,12 @@ > grep '-- foobar --' $WORK/out/github.com_gobin-testrepos_simple-main_v1.0.0.txtar PASS ---- PASS: TestScripts (0.35s) - --- PASS: TestScripts/encode (0.40s) - --- PASS: TestScripts/to_stdout (0.66s) - --- PASS: TestScripts/txtar-addmod-self (1.17s) +--- PASS: TestScripts (0.04s) + --- PASS: TestScripts/encode (0.25s) + --- PASS: TestScripts/to_stdout (0.30s) + --- PASS: TestScripts/txtar-addmod-self (0.34s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 1.621s +ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 0.396s === RUN TestScripts === RUN TestScripts/all === PAUSE TestScripts/all @@ -2151,11 +2187,12 @@ === RUN TestScripts/txtar-savedir-self === PAUSE TestScripts/txtar-savedir-self === CONT TestScripts/all -=== CONT TestScripts/txtar-savedir-self === CONT TestScripts/quote === CONT TestScripts/needquote +=== CONT TestScripts/txtar-savedir-self +=== NAME TestScripts/quote testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1874643958/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1013983175/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 @@ -2167,19 +2204,19 @@ > unquote blah/withsep > unquote expect - > txtar-c blah + > txtar-c -quote blah [stdout] - -- nosep -- - bar - [stderr] - txtar-c: blah/withsep: ignoring file with txtar marker in - > stderr 'txtar-c: blah.withsep: ignoring file with txtar marker in' + unquote withsep + -- withsep -- + >-- separator -- + >foo + > ! stderr .+ > cmp stdout expect PASS -=== NAME TestScripts/quote +=== NAME TestScripts/needquote testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1874643958/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1013983175/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2191,19 +2228,19 @@ > unquote blah/withsep > unquote expect - > txtar-c -quote blah + > txtar-c blah [stdout] - unquote withsep - -- withsep -- - >-- separator -- - >foo - > ! stderr .+ + -- nosep -- + bar + [stderr] + txtar-c: blah/withsep: ignoring file with txtar marker in + > stderr 'txtar-c: blah.withsep: ignoring file with txtar marker in' > cmp stdout expect PASS === NAME TestScripts/txtar-savedir-self testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1874643958/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1013983175/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 @@ -2235,7 +2272,7 @@ === NAME TestScripts/all testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1874643958/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1013983175/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2247,7 +2284,7 @@ > unquote expect-all > unquote expect-no-all - # Without the -a flag, it should ignore . files. (0.063s) + # Without the -a flag, it should ignore . files. (0.005s) > txtar-c blah [stdout] -- go.mod -- @@ -2263,7 +2300,7 @@ } > ! stderr .+ > cmp stdout expect-no-all - # With the -a flag, it should include them. (0.064s) + # With the -a flag, it should include them. (0.003s) > txtar-c -a blah [stdout] -- .foo/foo -- @@ -2285,13 +2322,13 @@ > cmp stdout expect-all PASS ---- PASS: TestScripts (0.02s) - --- PASS: TestScripts/needquote (0.17s) - --- PASS: TestScripts/quote (0.19s) - --- PASS: TestScripts/txtar-savedir-self (0.19s) - --- PASS: TestScripts/all (0.22s) +--- PASS: TestScripts (0.00s) + --- PASS: TestScripts/needquote (0.04s) + --- PASS: TestScripts/quote (0.04s) + --- PASS: TestScripts/all (0.04s) + --- PASS: TestScripts/txtar-savedir-self (0.05s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.292s +ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.053s ? github.com/rogpeppe/go-internal/cmd/txtar-goproxy [no test files] === RUN TestScripts === RUN TestScripts/extract-dir @@ -2308,7 +2345,7 @@ === CONT TestScripts/extract === NAME TestScripts/extract-dir testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main373659872/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1677363631/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 @@ -2324,9 +2361,27 @@ > cmp x/y/a/b/bar expect/a/b/bar PASS +=== NAME TestScripts/extract + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main1677363631/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= + + > unquote file.txtar + > txtar-x file.txtar + > cmp foo expect/foo + > cmp a/b/bar expect/a/b/bar + PASS + === NAME TestScripts/extract-stdin testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main373659872/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1677363631/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 @@ -2345,7 +2400,7 @@ === NAME TestScripts/extract-out-of-bounds testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main373659872/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1677363631/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 @@ -2368,31 +2423,13 @@ > stderr '"/foo": outside parent directory' PASS -=== NAME TestScripts/extract - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main373659872/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= - - > unquote file.txtar - > txtar-x file.txtar - > cmp foo expect/foo - > cmp a/b/bar expect/a/b/bar - PASS - ---- PASS: TestScripts (0.01s) - --- PASS: TestScripts/extract-dir (0.09s) - --- PASS: TestScripts/extract-stdin (0.09s) - --- PASS: TestScripts/extract-out-of-bounds (0.13s) - --- PASS: TestScripts/extract (0.15s) +--- PASS: TestScripts (0.00s) + --- PASS: TestScripts/extract-dir (0.03s) + --- PASS: TestScripts/extract (0.02s) + --- PASS: TestScripts/extract-stdin (0.03s) + --- PASS: TestScripts/extract-out-of-bounds (0.04s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.224s +ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.040s === RUN Test === RUN Test/allnew.txt === RUN Test/allold.txt @@ -2406,31 +2443,31 @@ === RUN Test/same.txt === RUN Test/start.txt === RUN Test/triv.txt ---- PASS: Test (0.07s) +--- PASS: Test (0.00s) --- PASS: Test/allnew.txt (0.00s) - --- PASS: Test/allold.txt (0.01s) + --- PASS: Test/allold.txt (0.00s) --- PASS: Test/basic.txt (0.00s) - --- PASS: Test/dups.txt (0.01s) - --- PASS: Test/end.txt (0.01s) + --- PASS: Test/dups.txt (0.00s) + --- PASS: Test/end.txt (0.00s) --- PASS: Test/eof.txt (0.00s) - --- PASS: Test/eof1.txt (0.01s) - --- PASS: Test/eof2.txt (0.01s) + --- PASS: Test/eof1.txt (0.00s) + --- PASS: Test/eof2.txt (0.00s) --- PASS: Test/long.txt (0.00s) --- PASS: Test/same.txt (0.00s) --- PASS: Test/start.txt (0.00s) --- PASS: Test/triv.txt (0.00s) PASS -ok github.com/rogpeppe/go-internal/diff 0.152s +ok github.com/rogpeppe/go-internal/diff 0.005s === RUN TestHash1 --- PASS: TestHash1 (0.00s) === RUN TestHashDir --- PASS: TestHashDir (0.00s) === RUN TestHashZip ---- PASS: TestHashZip (0.01s) +--- PASS: TestHashZip (0.00s) === RUN TestDirFiles --- PASS: TestDirFiles (0.00s) PASS -ok github.com/rogpeppe/go-internal/dirhash 0.072s +ok github.com/rogpeppe/go-internal/dirhash 0.006s === RUN TestCompare --- PASS: TestCompare (0.00s) === RUN TestOrder @@ -2438,13 +2475,13 @@ === RUN TestInterface --- PASS: TestInterface (0.00s) PASS -ok github.com/rogpeppe/go-internal/fmtsort 0.062s +ok github.com/rogpeppe/go-internal/fmtsort 0.004s === 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 @@ -2459,7 +2496,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:34615/mod + GOPROXY=http://127.0.0.1:41423/mod goversion=1.24 GONOSUMDB=* @@ -2484,19 +2521,19 @@ # as that places GOMODCACHE inside the Go module and "mod tidy" walks it. # "mod tidy" then complains about invalid import paths such as # "mod/gopath/pkg/mod/fruit.com@v1.1.0/fruit". - # It's for that reason that we moved the default GOPATH to ${WORK}/.gopath. (0.092s) + # It's for that reason that we moved the default GOPATH to ${WORK}/.gopath. (0.005s) > go mod tidy [stderr] go: warning: "all" matched no packages PASS ---- PASS: TestScripts (0.45s) - --- PASS: TestScripts/list (0.51s) +--- PASS: TestScripts (0.04s) + --- PASS: TestScripts/list (0.34s) PASS -ok github.com/rogpeppe/go-internal/goproxytest 1.025s +ok github.com/rogpeppe/go-internal/goproxytest 0.393s === RUN TestInitGoEnv ---- PASS: TestInitGoEnv (0.47s) +--- PASS: TestInitGoEnv (0.04s) === RUN TestSimple === RUN TestSimple/cover === PAUSE TestSimple/cover @@ -2508,7 +2545,7 @@ === CONT TestSimple/version === CONT 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 @@ -2528,7 +2565,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.260s) + # but GOCACHE is. (0.008s) > go env [stdout] AR='ar' @@ -2554,7 +2591,7 @@ GOEXPERIMENT='' GOFIPS140='off' GOFLAGS='' - GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build2846620610=/tmp/go-build -gno-record-gcc-switches' + GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build1361724531=/tmp/go-build -gno-record-gcc-switches' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' @@ -2585,7 +2622,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 @@ -2616,7 +2653,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 @@ -2637,25 +2674,25 @@ > unquote scripts/exec.txt # The module uses testscript itself. - # Use the checked out module, based on where the test binary ran. (1.221s) + # Use the checked out module, based on where the test binary ran. (0.097s) > 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]:42383->[::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]:52230->[::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.42s) - --- PASS: TestSimple/env (0.27s) - --- PASS: TestSimple/version (0.33s) - --- SKIP: TestSimple/cover (1.23s) +--- PASS: TestSimple (0.04s) + --- PASS: TestSimple/env (0.01s) + --- PASS: TestSimple/version (0.03s) + --- SKIP: TestSimple/cover (0.16s) PASS -ok github.com/rogpeppe/go-internal/gotooltest 2.180s +ok github.com/rogpeppe/go-internal/gotooltest 0.246s === RUN TestReadImports --- PASS: TestReadImports (0.00s) === RUN TestReadComments @@ -2667,9 +2704,9 @@ === RUN TestScan --- PASS: TestScan (0.00s) === RUN TestScanStar ---- PASS: TestScanStar (0.03s) +--- PASS: TestScanStar (0.00s) PASS -ok github.com/rogpeppe/go-internal/imports 0.084s +ok github.com/rogpeppe/go-internal/imports 0.004s === RUN TestAlmostEqual === PAUSE TestAlmostEqual === CONT TestAlmostEqual @@ -2687,7 +2724,7 @@ === RUN FuzzAlmostEqual/5bd9cd4e8c887808 === RUN FuzzAlmostEqual/b323cef1fc26e507 === RUN FuzzAlmostEqual/c6edde4256d6f5eb ---- PASS: FuzzAlmostEqual (0.03s) +--- PASS: FuzzAlmostEqual (0.00s) --- PASS: FuzzAlmostEqual/seed#0 (0.00s) --- PASS: FuzzAlmostEqual/seed#1 (0.00s) --- PASS: FuzzAlmostEqual/seed#2 (0.00s) @@ -2701,7 +2738,7 @@ --- PASS: FuzzAlmostEqual/b323cef1fc26e507 (0.00s) --- PASS: FuzzAlmostEqual/c6edde4256d6f5eb (0.00s) PASS -ok github.com/rogpeppe/go-internal/internal/misspell 0.068s +ok github.com/rogpeppe/go-internal/internal/misspell 0.004s ? 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] @@ -2712,29 +2749,32 @@ === RUN TestCanLockExistingFile === PAUSE TestCanLockExistingFile === RUN TestSpuriousEDEADLK ---- PASS: TestSpuriousEDEADLK (0.11s) +--- PASS: TestSpuriousEDEADLK (0.02s) === RUN TestTransform ---- PASS: TestTransform (4.52s) +--- PASS: TestTransform (0.44s) === CONT TestMutexExcludes +=== CONT TestCanLockExistingFile +=== CONT TestReadWaitsForLock +=== NAME TestMutexExcludes lockedfile_test.go:85: mu := MutexAt(_) lockedfile_test.go:91: unlock, _ := mu.Lock() lockedfile_test.go:94: mu2 := MutexAt(mu.Path) -=== CONT TestCanLockExistingFile -=== CONT TestReadWaitsForLock +=== NAME TestReadWaitsForLock lockedfile_test.go:134: WriteString("part 1\n") = === NAME TestMutexExcludes lockedfile_test.go:107: unlock() - lockedfile_test.go:102: unlock2, _ := mu2.Lock() - lockedfile_test.go:103: unlock2() ---- PASS: TestMutexExcludes (0.02s) === NAME TestReadWaitsForLock lockedfile_test.go:156: WriteString("part 2\n") = ---- PASS: TestCanLockExistingFile (0.02s) +=== NAME TestMutexExcludes + lockedfile_test.go:102: unlock2, _ := mu2.Lock() + lockedfile_test.go:103: unlock2() +--- PASS: TestCanLockExistingFile (0.01s) === NAME TestReadWaitsForLock lockedfile_test.go:146: Read(_) = "part 1\npart 2\n" ---- PASS: TestReadWaitsForLock (0.02s) +--- PASS: TestMutexExcludes (0.01s) +--- PASS: TestReadWaitsForLock (0.07s) PASS -ok github.com/rogpeppe/go-internal/lockedfile 4.739s +ok github.com/rogpeppe/go-internal/lockedfile 0.534s === RUN TestLockExcludesLock === PAUSE TestLockExcludesLock === RUN TestLockExcludesRLock @@ -2742,62 +2782,74 @@ === RUN TestRLockExcludesOnlyLock === PAUSE TestRLockExcludesOnlyLock === RUN TestLockNotDroppedByExecCommand - filelock_test.go:188: fd 6 = /tmp/TestLockNotDroppedByExecCommand3762478617 + filelock_test.go:188: fd 6 = /tmp/TestLockNotDroppedByExecCommand3849370747 filelock_test.go:191: Lock(fd 6) = - filelock_test.go:193: fd 7 = os.Open("/tmp/TestLockNotDroppedByExecCommand3762478617") + filelock_test.go:193: fd 7 = os.Open("/tmp/TestLockNotDroppedByExecCommand3849370747") filelock_test.go:204: Lock(fd 7) is blocked (as expected) filelock_test.go:205: Unlock(fd 6) = asm_amd64.s:1700: Lock(fd 7) = filelock_test.go:207: Unlock(fd 7) = ---- PASS: TestLockNotDroppedByExecCommand (0.12s) +--- PASS: TestLockNotDroppedByExecCommand (0.01s) === CONT TestLockExcludesLock - filelock_test.go:121: fd 6 = /tmp/TestLockExcludesLock199003690 - filelock_test.go:124: fd 7 = os.Open("/tmp/TestLockExcludesLock199003690") - filelock_test.go:127: Lock(fd 6) = === CONT TestRLockExcludesOnlyLock - filelock_test.go:153: fd 8 = /tmp/TestRLockExcludesOnlyLock1546938573 - filelock_test.go:155: RLock(fd 8) = - filelock_test.go:157: fd 9 = os.Open("/tmp/TestRLockExcludesOnlyLock1546938573") - filelock_test.go:171: RLock(fd 9) = - filelock_test.go:175: fd 10 = os.Open("/tmp/TestRLockExcludesOnlyLock1546938573") +=== NAME TestLockExcludesLock + filelock_test.go:121: fd 6 = /tmp/TestLockExcludesLock754790894 +=== NAME TestRLockExcludesOnlyLock + filelock_test.go:153: fd 7 = /tmp/TestRLockExcludesOnlyLock934052110 === CONT TestLockExcludesRLock - filelock_test.go:137: fd 11 = /tmp/TestLockExcludesRLock2052081116 - filelock_test.go:140: fd 12 = os.Open("/tmp/TestLockExcludesRLock2052081116") - filelock_test.go:143: Lock(fd 11) = === NAME TestRLockExcludesOnlyLock - filelock_test.go:177: Lock(fd 10) is blocked (as expected) - filelock_test.go:179: Unlock(fd 9) = - filelock_test.go:181: Unlock(fd 8) = + filelock_test.go:155: RLock(fd 7) = +=== NAME TestLockExcludesRLock + filelock_test.go:137: fd 9 = /tmp/TestLockExcludesRLock3459191637 === NAME TestLockExcludesLock - filelock_test.go:128: Lock(fd 7) is blocked (as expected) - filelock_test.go:129: Unlock(fd 6) = + filelock_test.go:124: fd 8 = os.Open("/tmp/TestLockExcludesLock754790894") + filelock_test.go:127: Lock(fd 6) = === NAME TestRLockExcludesOnlyLock - asm_amd64.s:1700: Lock(fd 10) = - filelock_test.go:184: Unlock(fd 10) = ---- PASS: TestRLockExcludesOnlyLock (0.02s) + filelock_test.go:157: fd 10 = os.Open("/tmp/TestRLockExcludesOnlyLock934052110") + filelock_test.go:171: RLock(fd 10) = + filelock_test.go:175: fd 12 = os.Open("/tmp/TestRLockExcludesOnlyLock934052110") === NAME TestLockExcludesRLock - filelock_test.go:144: RLock(fd 12) is blocked (as expected) - filelock_test.go:145: Unlock(fd 11) = + filelock_test.go:140: fd 11 = os.Open("/tmp/TestLockExcludesRLock3459191637") + filelock_test.go:143: Lock(fd 9) = +=== NAME TestRLockExcludesOnlyLock + filelock_test.go:177: Lock(fd 12) is blocked (as expected) + filelock_test.go:179: Unlock(fd 10) = + filelock_test.go:181: Unlock(fd 7) = === NAME TestLockExcludesLock - asm_amd64.s:1700: Lock(fd 7) = - filelock_test.go:131: Unlock(fd 7) = ---- PASS: TestLockExcludesLock (0.02s) + filelock_test.go:128: Lock(fd 8) is blocked (as expected) +=== NAME TestLockExcludesRLock + filelock_test.go:144: RLock(fd 11) is blocked (as expected) +=== NAME TestRLockExcludesOnlyLock + asm_amd64.s:1700: Lock(fd 12) = === NAME TestLockExcludesRLock - asm_amd64.s:1700: RLock(fd 12) = - filelock_test.go:147: Unlock(fd 12) = ---- PASS: TestLockExcludesRLock (0.02s) + filelock_test.go:145: Unlock(fd 9) = +=== NAME TestRLockExcludesOnlyLock + filelock_test.go:184: Unlock(fd 12) = +=== NAME TestLockExcludesLock + filelock_test.go:129: Unlock(fd 6) = +--- PASS: TestRLockExcludesOnlyLock (0.01s) +=== NAME TestLockExcludesLock + asm_amd64.s:1700: Lock(fd 8) = +=== NAME TestLockExcludesRLock + asm_amd64.s:1700: RLock(fd 11) = +=== NAME TestLockExcludesLock + filelock_test.go:131: Unlock(fd 8) = +=== NAME TestLockExcludesRLock + filelock_test.go:147: Unlock(fd 11) = +--- PASS: TestLockExcludesLock (0.01s) +--- PASS: TestLockExcludesRLock (0.01s) PASS -ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.193s +ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.029s ? github.com/rogpeppe/go-internal/modfile [no test files] ? github.com/rogpeppe/go-internal/module [no test files] === RUN TestWork ---- PASS: TestWork (0.07s) +--- PASS: TestWork (0.03s) === RUN TestWorkParallel ---- PASS: TestWorkParallel (0.01s) +--- PASS: TestWorkParallel (0.00s) === RUN TestCache --- PASS: TestCache (0.00s) PASS -ok github.com/rogpeppe/go-internal/par 0.128s +ok github.com/rogpeppe/go-internal/par 0.035s ? 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] @@ -2810,9 +2862,9 @@ testscript.go:558: > exists output.txt PASS ---- PASS: TestCRLFInput (0.01s) +--- PASS: TestCRLFInput (0.00s) --- PASS: TestCRLFInput/_ (0.00s) - --- PASS: TestCRLFInput/_/script (0.01s) + --- PASS: TestCRLFInput/_/script (0.00s) === RUN TestEnv --- PASS: TestEnv (0.00s) === RUN TestSetupFailure @@ -2888,12 +2940,16 @@ === PAUSE TestScripts/wait === CONT TestScripts/big_diff === CONT TestScripts/readfile -=== CONT TestScripts/pty === CONT TestScripts/testscript_notfound +=== CONT TestScripts/pty === CONT TestScripts/testscript_stdout_stderr_error === CONT TestScripts/evalsymlink -=== CONT TestScripts/hello -=== CONT TestScripts/defer +=== CONT TestScripts/commandstatus +=== CONT TestScripts/testscript_update_script_quote +=== CONT TestScripts/stdin +=== CONT TestScripts/testscript_duplicate_name +=== CONT TestScripts/cmpenv +=== CONT TestScripts/command === NAME TestScripts/testscript_notfound testscript.go:558: # Check that unknown commands output a useful error message (0.000s) > ! testscript notfound @@ -2916,15 +2972,251 @@ > stdout 'unknown command "exits" \(did you mean "exists"\?\)' PASS +=== CONT TestScripts/cmd_stdout_stderr +=== CONT TestScripts/testscript_logging +=== CONT TestScripts/setupfiles +=== CONT TestScripts/setenv === CONT TestScripts/regexpquote +=== CONT TestScripts/testscript_update_script_actual_is_file +=== NAME TestScripts/setupfiles + testscript.go:558: # check that the Setup function saw the unarchived files, + # including the temp directory that's always created. (0.000s) + > setup-filenames .tmp a b + PASS + +=== CONT TestScripts/testscript_update_script_expected_not_in_archive +=== NAME TestScripts/setenv + testscript.go:558: > setSpecialVal + > exists $SPECIALVAL.txt + > ensureSpecialVal + PASS + +=== CONT TestScripts/values +=== CONT TestScripts/wait +=== CONT TestScripts/hello +=== NAME TestScripts/regexpquote + testscript.go:558: > env XXX='hello)' + > grep ^${XXX@R}$ file.txt + PASS + +=== CONT TestScripts/nothing +=== CONT TestScripts/long_diff +=== CONT TestScripts/interrupt +=== CONT TestScripts/cpstdout +=== NAME TestScripts/readfile + testscript.go:558: > fprintargs stdout stdout + [stdout] + stdout + > testreadfile stdout + > fprintargs stderr stderr + [stderr] + stderr + > testreadfile stderr + > testreadfile x/somefile + PASS + +=== NAME TestScripts/values + testscript.go:558: > test-values + PASS + +=== CONT TestScripts/defer +=== CONT TestScripts/testscript_update_script_stderr +=== CONT TestScripts/cond +=== CONT TestScripts/execguard +=== CONT TestScripts/exists +=== CONT TestScripts/testscript_update_script +=== CONT TestScripts/exec_path_change +=== CONT TestScripts/testscript_explicit_exec +=== NAME TestScripts/pty + testscript.go:558: > [!linux] [!darwin] skip + > [darwin] skip # https://go.dev/issue/61779 + > ttyin secretwords.txt + > terminalprompt + > ttyout 'magic words' + > ! stderr . + > ! stdout . + PASS + +=== NAME TestScripts/cmpenv + testscript.go:558: > env $=$ + > cmpenv file1 file2 + PASS + +=== NAME TestScripts/hello + testscript.go:558: > [!exec:cat] stop + # hello world (0.000s) + > exec cat hello.text + [stdout] + hello world + > stdout 'hello world\n' + > ! stderr . + PASS + === NAME TestScripts/defer testscript.go:558: > testdefer > testdefer > testdefer PASS -=== CONT TestScripts/long_diff -=== CONT TestScripts/cpstdout +=== 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 + +=== 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_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/commandstatus + testscript.go:558: > ! status 1 + [exit status 1] + > ! status 2 + [exit status 2] + > status 0 + PASS + +=== NAME TestScripts/cond + testscript.go:558: # test that exactly one of gc and gccgo is set (0.000s) + > [gc] mkdir gc_true + > [gccgo] mkdir gccgo_true + > [gc] ! exists gccgo_true + > [!gc] exists gccgo_true + > [gccgo] ! exists gc_true + > [!gccgo] exists gc_true + # test that go version build tags are set (0.000s) + > [go1.1] mkdir go1.x + > [go2.1] mkdir go2.x + > exists go1.x + > ! exists go2.x + # unix should be true on Linux and MacOS, but not on Windows. + # Both platforms are tested on CI. (0.000s) + > [unix] mkdir unix_true + > [linux] exists unix_true + > [darwin] exists unix_true + > [windows] ! exists unix_true + PASS + +=== NAME TestScripts/exists + testscript.go:558: > chmod 444 foo_r + > exists foo + > ! exists unfoo + # TODO The following line fails but probably should not. + # ! exists -readonly foo (0.000s) + > exists foo_r + > exists -readonly foo_r + PASS + +=== NAME TestScripts/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 + +=== NAME TestScripts/nothing + testscript.go:558: # Intentionally blank file, used to test that -testwork doesn't remove the work directory (0.000s) + PASS + +=== NAME TestScripts/stdin + testscript.go:558: > [!exec:cat] skip + > stdin hello.txt + > exec cat + [stdout] + hello + + > stdout hello + > exec cat + > ! stdout hello + > [!exec:cat] stop + # Check that 'stdin stdout' works. (0.000s) + > exec cat hello.txt + [stdout] + hello + + > stdin stdout + > exec cat + [stdout] + hello + + > stdout hello + PASS + +=== NAME TestScripts/execguard + testscript.go:558: > [exec:nosuchcommand] exec nosuchcommand + > [!exec:cat] stop + > exec cat foo + [stdout] + foo + > stdout 'foo\n' + 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_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/long_diff testscript.go:558: # Verify the behaviour of cmp in the case of a small diff between # two large files (0.000s) @@ -2946,7 +3238,7 @@ > env WORK=$WORK - PATH=/tmp/testscript-main3282626645/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1347793459/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 @@ -2959,8 +3251,21 @@ > cmpenv stdout stdout.golden PASS -=== CONT TestScripts/nothing -=== CONT TestScripts/cond +=== 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/big_diff testscript.go:558: # Verify the behaviour of cmp in the case of a diff between two # large files (with a large diff) (0.000s) @@ -5029,7 +5334,7 @@ > env WORK=$WORK - PATH=/tmp/testscript-main3282626645/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1347793459/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 @@ -5042,396 +5347,6 @@ > cmpenv stdout stdout.golden PASS -=== CONT TestScripts/command -=== CONT TestScripts/execguard -=== CONT TestScripts/cmpenv -=== CONT TestScripts/cmd_stdout_stderr -=== NAME TestScripts/cmpenv - testscript.go:558: > env $=$ - > cmpenv file1 file2 - PASS - -=== CONT TestScripts/testscript_logging -=== CONT TestScripts/testscript_explicit_exec -=== CONT TestScripts/testscript_duplicate_name -=== CONT TestScripts/stdin -=== NAME TestScripts/testscript_stdout_stderr_error - testscript.go:558: # Verify that stdout and stderr get set event when a user-builtin - # command aborts. Note that we need to assert against stdout - # because our meta testscript command sees only a single log. (0.000s) - > unquote scripts/testscript.txt - > ! testscript -v scripts - [stdout] - > printargs hello world - [stdout] - ["printargs" "hello" "world"] - > echoandexit 1 'this is stdout' 'this is stderr' - [stdout] - this is stdout - [stderr] - this is stderr - FAIL: $WORK/scripts/testscript.txt:2: told to exit with code 1 - - > cmpenv stdout stdout.golden - PASS - -=== CONT TestScripts/exists -=== 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/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/exec_path_change -=== CONT TestScripts/interrupt -=== 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 - -=== CONT TestScripts/testscript_update_script_quote -=== CONT TestScripts/wait -=== 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/values - testscript.go:558: > test-values - PASS - -=== CONT TestScripts/testscript_update_script_stderr -=== CONT TestScripts/commandstatus -=== NAME TestScripts/regexpquote - testscript.go:558: > env XXX='hello)' - > grep ^${XXX@R}$ file.txt - PASS - -=== CONT TestScripts/testscript_update_script_actual_is_file -=== NAME TestScripts/nothing - testscript.go:558: # Intentionally blank file, used to test that -testwork doesn't remove the work directory (0.000s) - PASS - -=== CONT TestScripts/testscript_update_script_expected_not_in_archive -=== CONT TestScripts/setenv -=== 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/testscript_update_script -=== NAME TestScripts/setenv - testscript.go:558: > setSpecialVal - > exists $SPECIALVAL.txt - > ensureSpecialVal - 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_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_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/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/execguard - testscript.go:558: > [exec:nosuchcommand] exec nosuchcommand - > [!exec:cat] stop - > exec cat foo - [stdout] - foo - > stdout 'foo\n' - PASS - -=== NAME TestScripts/hello - testscript.go:558: > [!exec:cat] stop - # hello world (0.000s) - > exec cat hello.text - [stdout] - hello world - > stdout 'hello world\n' - > ! stderr . - PASS - -=== NAME TestScripts/testscript_update_script_quote - testscript.go:558: > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript -update scripts - [stdout] - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt - PASS - -=== NAME TestScripts/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 - -=== 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 - -=== NAME TestScripts/readfile - testscript.go:558: > fprintargs stdout stdout - [stdout] - stdout - > testreadfile stdout - > fprintargs stderr stderr - [stderr] - stderr - > testreadfile stderr - > testreadfile x/somefile - 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/stdin - testscript.go:558: > [!exec:cat] skip - > stdin hello.txt - > exec cat - [stdout] - hello - - > stdout hello - > exec cat - > ! stdout hello - > [!exec:cat] stop - # Check that 'stdin stdout' works. (0.000s) - > exec cat hello.txt - [stdout] - hello - - > stdin stdout - > exec cat - [stdout] - hello - - > stdout hello - PASS - -=== NAME TestScripts/commandstatus - testscript.go:558: > ! status 1 - [exit status 1] - > ! status 2 - [exit status 2] - > status 0 - 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/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/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 @@ -5584,6 +5499,145 @@ > cmpenv stdout expect-stdout-vc.txt PASS +=== NAME TestScripts/testscript_update_script_stderr + testscript.go:558: > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript -update scripts + [stdout] + PASS + $WORK/scripts/testscript.txt updated + + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== NAME TestScripts/testscript_stdout_stderr_error + testscript.go:558: # Verify that stdout and stderr get set event when a user-builtin + # command aborts. Note that we need to assert against stdout + # because our meta testscript command sees only a single log. (0.000s) + > unquote scripts/testscript.txt + > ! testscript -v scripts + [stdout] + > printargs hello world + [stdout] + ["printargs" "hello" "world"] + > echoandexit 1 'this is stdout' 'this is stderr' + [stdout] + this is stdout + [stderr] + this is stderr + FAIL: $WORK/scripts/testscript.txt:2: told to exit with code 1 + + > cmpenv stdout stdout.golden + PASS + +=== NAME TestScripts/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/testscript_update_script_quote + testscript.go:558: > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript -update scripts + [stdout] + PASS + $WORK/scripts/testscript.txt updated + + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== NAME TestScripts/testscript_update_script + 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/exec_path_change testscript.go:558: # If the PATH environment variable is set in the testscript.Params.Setup phase # or set directly within a script, exec should honour that PATH (0.000s) @@ -5605,61 +5659,61 @@ > stdout 'This is not go' PASS ---- PASS: TestScripts (0.01s) - --- PASS: TestScripts/testscript_notfound (0.04s) +--- PASS: TestScripts (0.00s) + --- PASS: TestScripts/testscript_notfound (0.00s) + --- PASS: TestScripts/setupfiles (0.00s) + --- PASS: TestScripts/setenv (0.00s) + --- PASS: TestScripts/regexpquote (0.00s) + --- PASS: TestScripts/values (0.00s) + --- PASS: TestScripts/readfile (0.01s) + --- PASS: TestScripts/cmpenv (0.01s) + --- PASS: TestScripts/hello (0.01s) --- PASS: TestScripts/defer (0.01s) - --- PASS: TestScripts/long_diff (0.01s) - --- PASS: TestScripts/big_diff (0.11s) + --- PASS: TestScripts/evalsymlink (0.02s) + --- PASS: TestScripts/command (0.01s) + --- PASS: TestScripts/commandstatus (0.02s) + --- PASS: TestScripts/pty (0.02s) + --- PASS: TestScripts/exists (0.01s) + --- PASS: TestScripts/nothing (0.01s) + --- PASS: TestScripts/cond (0.01s) + --- PASS: TestScripts/cpstdout (0.01s) + --- PASS: TestScripts/stdin (0.02s) + --- PASS: TestScripts/execguard (0.01s) + --- PASS: TestScripts/interrupt (0.02s) + --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.02s) + --- PASS: TestScripts/long_diff (0.02s) + --- PASS: TestScripts/testscript_duplicate_name (0.02s) + --- PASS: TestScripts/testscript_update_script_actual_is_file (0.02s) + --- PASS: TestScripts/big_diff (0.03s) + --- PASS: TestScripts/cmd_stdout_stderr (0.03s) + --- PASS: TestScripts/testscript_logging (0.07s) + --- PASS: TestScripts/testscript_update_script_stderr (0.13s) --- PASS: TestScripts/testscript_stdout_stderr_error (0.14s) - --- PASS: TestScripts/exists (0.02s) - --- PASS: TestScripts/cmpenv (0.06s) - --- PASS: TestScripts/testscript_duplicate_name (0.03s) - --- PASS: TestScripts/setupfiles (0.02s) - --- PASS: TestScripts/command (0.07s) - --- PASS: TestScripts/values (0.00s) - --- PASS: TestScripts/regexpquote (0.18s) - --- PASS: TestScripts/nothing (0.17s) - --- PASS: TestScripts/cond (0.17s) - --- PASS: TestScripts/setenv (0.00s) - --- PASS: TestScripts/testscript_update_script_actual_is_file (0.04s) - --- PASS: TestScripts/testscript_update_script_stderr (0.09s) - --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.07s) - --- PASS: TestScripts/interrupt (0.18s) - --- PASS: TestScripts/execguard (0.25s) - --- PASS: TestScripts/hello (0.33s) - --- PASS: TestScripts/testscript_update_script_quote (0.19s) - --- PASS: TestScripts/pty (0.36s) - --- PASS: TestScripts/evalsymlink (0.39s) - --- PASS: TestScripts/cpstdout (0.36s) - --- PASS: TestScripts/readfile (0.48s) - --- PASS: TestScripts/testscript_update_script (0.28s) - --- PASS: TestScripts/stdin (0.39s) - --- PASS: TestScripts/commandstatus (0.34s) - --- PASS: TestScripts/testscript_explicit_exec (0.43s) - --- PASS: TestScripts/wait (0.43s) - --- PASS: TestScripts/cmd_stdout_stderr (0.58s) - --- PASS: TestScripts/testscript_logging (1.47s) - --- PASS: TestScripts/exec_path_change (52.18s) + --- PASS: TestScripts/wait (0.14s) + --- PASS: TestScripts/testscript_explicit_exec (0.14s) + --- PASS: TestScripts/testscript_update_script_quote (0.28s) + --- PASS: TestScripts/testscript_update_script (0.36s) + --- PASS: TestScripts/exec_path_change (4.56s) === RUN TestTestwork ---- PASS: TestTestwork (12.08s) +--- PASS: TestTestwork (1.16s) === 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/1740545935/script-nothing + testscript.go:558: WORK=/tmp/2515521310/script-nothing # Intentionally empty test script; used to test Params.WorkdirRoot (0.000s) PASS ---- PASS: TestWorkdirRoot (0.03s) +--- PASS: TestWorkdirRoot (0.00s) --- PASS: TestWorkdirRoot/run_tests (0.00s) - --- PASS: TestWorkdirRoot/run_tests/nothing (0.01s) + --- PASS: TestWorkdirRoot/run_tests/nothing (0.00s) === RUN TestBadDir --- PASS: TestBadDir (0.00s) === RUN TestUNIX2DOS --- PASS: TestUNIX2DOS (0.00s) PASS -ok github.com/rogpeppe/go-internal/testscript 64.556s +ok github.com/rogpeppe/go-internal/testscript 5.741s ? github.com/rogpeppe/go-internal/testscript/internal/pty [no test files] === RUN Test === RUN Test/basic @@ -5668,7 +5722,7 @@ --- PASS: Test/basic (0.00s) --- PASS: Test/basicCRLF (0.00s) === RUN TestWrite ---- PASS: TestWrite (0.01s) +--- PASS: TestWrite (0.00s) === RUN TestUnquote === RUN TestUnquote/no_final_newline === RUN TestUnquote/no_initial_> @@ -5688,7 +5742,7 @@ --- PASS: TestQuote/bad_data (0.00s) --- PASS: TestQuote/no_final_newline (0.00s) PASS -ok github.com/rogpeppe/go-internal/txtar 0.072s +ok github.com/rogpeppe/go-internal/txtar 0.004s 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). @@ -5717,9 +5771,9 @@ 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_amd64.deb'. dpkg-deb: building package 'go-internal-dbgsym' in '../go-internal-dbgsym_1.12.0-3_amd64.deb'. -dpkg-deb: building package 'golang-github-rogpeppe-go-internal-dev' in '../golang-github-rogpeppe-go-internal-dev_1.12.0-3_all.deb'. dpkg-genbuildinfo --build=binary -O../golang-github-rogpeppe-go-internal_1.12.0-3_amd64.buildinfo dpkg-genchanges --build=binary -O../golang-github-rogpeppe-go-internal_1.12.0-3_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -5727,12 +5781,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/1917008/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1917008/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/1373386 and its subdirectories -I: Current time: Sat Mar 15 20:27:01 -12 2025 -I: pbuilder-time-stamp: 1742113621 +I: removing directory /srv/workspace/pbuilder/1917008 and its subdirectories +I: Current time: Sun Apr 19 04:51:24 +14 2026 +I: pbuilder-time-stamp: 1776523884