Diff of the two buildlogs: -- --- b1/build.log 2024-12-22 03:46:09.377114228 +0000 +++ b2/build.log 2024-12-22 03:48:09.255685909 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Jan 23 22:04:15 -12 2026 -I: pbuilder-time-stamp: 1769249055 +I: Current time: Sun Dec 22 17:46:11 +14 2024 +I: pbuilder-time-stamp: 1734839171 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -29,54 +29,86 @@ dpkg-source: info: applying 246.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/55420/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/62565/tmp/hooks/D01_modify_environment starting +debug: Running on ionos2-i386. +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 Dec 22 03:46 /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/62565/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/62565/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=22 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + 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]="i686-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=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='d13332b65cd3488488c43c96c49f312e' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - 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='55420' - PS1='# ' - PS2='> ' + INVOCATION_ID=ec2796948dc74c85b0b4b49df04bffc8 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-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=62565 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.JdUV67f8/pbuilderrc_JCoq --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.JdUV67f8/b1 --logfile b1/build.log golang-github-rogpeppe-go-internal_1.12.0-3.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.JdUV67f8/pbuilderrc_8KE3 --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.JdUV67f8/b2 --logfile b2/build.log golang-github-rogpeppe-go-internal_1.12.0-3.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos16-i386 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/55420/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/62565/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -170,7 +202,7 @@ Get: 44 http://deb.debian.org/debian unstable/main i386 golang-golang-x-net-dev all 1:0.27.0-1 [898 kB] Get: 45 http://deb.debian.org/debian unstable/main i386 golang-golang-x-sync-dev all 0.7.0-1 [19.0 kB] Get: 46 http://deb.debian.org/debian unstable/main i386 golang-golang-x-tools-dev all 1:0.23.0+ds-1 [1593 kB] -Fetched 74.8 MB in 4s (19.5 MB/s) +Fetched 74.8 MB in 1s (58.7 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19953 files and directories currently installed.) @@ -376,7 +408,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/62565/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/62565/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 @@ -394,195 +430,195 @@ 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 22 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 -math/bits -internal/profilerecord -internal/goarch -cmp -internal/race -internal/msan -internal/itoa -crypto/internal/alias -internal/asan + cd _build && go install -trimpath -v -p 10 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/diff github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/misspell github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/robustio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/testscript/internal/pty github.com/rogpeppe/go-internal/txtar internal/byteorder -internal/goexperiment +internal/godebugs +internal/unsafeheader internal/coverage/rtcov -unicode -sync/atomic -crypto/internal/boring/sig +internal/goarch +internal/goos +internal/profilerecord +internal/goexperiment internal/cpu +internal/runtime/atomic +internal/runtime/syscall +internal/race runtime/internal/math +sync/atomic +internal/abi +runtime/internal/sys +unicode +internal/chacha8rand +unicode/utf8 +math/bits +crypto/internal/alias +crypto/internal/boring/sig +cmp +internal/itoa +internal/asan +internal/bytealg +internal/runtime/exithook +internal/msan +math log/internal encoding unicode/utf16 internal/nettrace -internal/godebugs -unicode/utf8 -internal/goos -internal/runtime/atomic container/list vendor/golang.org/x/crypto/cryptobyte/asn1 -runtime/internal/sys vendor/golang.org/x/crypto/internal/alias -internal/unsafeheader -internal/runtime/syscall -math +github.com/rogpeppe/go-internal/internal/misspell internal/goversion -internal/abi internal/platform github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll -github.com/rogpeppe/go-internal/internal/misspell -internal/chacha8rand -internal/bytealg -internal/runtime/exithook internal/stringslite runtime -iter -internal/weak crypto/subtle internal/reflectlite +iter +internal/weak sync maps slices internal/bisect +internal/testlog internal/singleflight +runtime/cgo errors -internal/testlog sort +internal/godebug internal/oserror +io path math/rand/v2 crypto/internal/edwards25519/field -io vendor/golang.org/x/net/dns/dnsmessage -internal/godebug strconv -crypto/internal/nistec/fiat -crypto/internal/edwards25519 syscall -hash math/rand +crypto/internal/nistec/fiat +crypto/internal/edwards25519 +internal/concurrent bytes -crypto/internal/randutil +hash strings -golang.org/x/mod/semver -internal/concurrent -runtime/cgo hash/crc32 -unique -github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/par -crypto/cipher -vendor/golang.org/x/text/transform crypto -crypto/rc4 -bufio -net/http/internal/ascii -go/build/constraint +crypto/cipher +golang.org/x/mod/semver reflect +bufio +unique +crypto/internal/randutil regexp/syntax -net/netip -crypto/des -crypto/internal/boring crypto/md5 -time -internal/syscall/execenv -regexp +crypto/rc4 +crypto/internal/boring +crypto/des crypto/sha256 -crypto/hmac -crypto/sha1 crypto/aes +net/netip crypto/sha512 +crypto/hmac +time internal/syscall/unix +internal/syscall/execenv vendor/golang.org/x/crypto/hkdf -context +crypto/sha1 +vendor/golang.org/x/text/transform +net/http/internal/ascii +go/build/constraint +github.com/rogpeppe/go-internal/semver +regexp +crypto/internal/nistec io/fs internal/poll +context internal/filepathlite +crypto/ecdh os -crypto/internal/nistec internal/fmtsort -encoding/binary github.com/rogpeppe/go-internal/fmtsort +encoding/binary encoding/base64 vendor/golang.org/x/crypto/chacha20 vendor/golang.org/x/crypto/internal/poly1305 -internal/sysinfo -internal/lazyregexp -fmt -github.com/rogpeppe/go-internal/robustio -github.com/rogpeppe/go-internal/lockedfile/internal/filelock +encoding/pem +vendor/golang.org/x/crypto/chacha20poly1305 golang.org/x/mod/internal/lazyregexp +github.com/rogpeppe/go-internal/lockedfile/internal/filelock path/filepath +fmt io/ioutil +internal/lazyregexp +internal/sysinfo +github.com/rogpeppe/go-internal/robustio vendor/golang.org/x/sys/cpu -encoding/pem -vendor/golang.org/x/crypto/chacha20poly1305 -crypto/ecdh net vendor/golang.org/x/crypto/sha3 github.com/rogpeppe/go-internal/renameio os/exec -flag -log +github.com/rogpeppe/go-internal/internal/os/execpath +internal/goroot encoding/hex -github.com/rogpeppe/go-internal/diff +log +flag +golang.org/x/tools/txtar +github.com/rogpeppe/go-internal/lockedfile +golang.org/x/mod/module +compress/flate +encoding/json +math/big net/url -net/http/internal +vendor/golang.org/x/text/unicode/norm +vendor/golang.org/x/text/unicode/bidi +vendor/golang.org/x/net/http2/hpack +github.com/rogpeppe/go-internal/cache +mime mime/quotedprintable -github.com/rogpeppe/go-internal/lockedfile +archive/zip +compress/gzip +net/http/internal +github.com/rogpeppe/go-internal/diff github.com/rogpeppe/go-internal/imports -golang.org/x/mod/module runtime/debug -encoding/json -golang.org/x/tools/txtar runtime/trace -mime -compress/flate -vendor/golang.org/x/net/http2/hpack +vendor/golang.org/x/text/secure/bidirule +github.com/rogpeppe/go-internal/testscript/internal/pty +github.com/rogpeppe/go-internal/txtar go/token -vendor/golang.org/x/text/unicode/norm go/doc/comment -github.com/rogpeppe/go-internal/internal/os/execpath internal/buildcfg -github.com/rogpeppe/go-internal/testscript/internal/pty -math/big -github.com/rogpeppe/go-internal/txtar -internal/goroot -github.com/rogpeppe/go-internal/cache -vendor/golang.org/x/text/unicode/bidi -go/scanner -github.com/rogpeppe/go-internal/module -golang.org/x/mod/modfile -go/ast -compress/gzip -archive/zip -github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/cmd/txtar-addmod -github.com/rogpeppe/go-internal/cmd/txtar-c testing -vendor/golang.org/x/text/secure/bidirule -github.com/rogpeppe/go-internal/modfile vendor/golang.org/x/net/idna -go/internal/typeparams -go/doc -crypto/dsa -crypto/internal/boring/bbig +go/scanner +github.com/rogpeppe/go-internal/cmd/txtar-c +github.com/rogpeppe/go-internal/cmd/txtar-x +github.com/rogpeppe/go-internal/dirhash +golang.org/x/mod/modfile +github.com/rogpeppe/go-internal/module +crypto/rand crypto/elliptic crypto/internal/bigmod -crypto/rand +crypto/internal/boring/bbig encoding/asn1 -go/parser crypto/ed25519 -crypto/internal/mlkem768 crypto/internal/hpke -github.com/rogpeppe/go-internal/dirhash +crypto/internal/mlkem768 crypto/rsa +crypto/dsa +go/ast +github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/testenv -crypto/x509/pkix vendor/golang.org/x/crypto/cryptobyte +crypto/x509/pkix crypto/ecdsa +go/internal/typeparams +go/doc +go/parser go/build github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/gotooltest @@ -603,26 +639,26 @@ 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 22 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 10 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.03s) === RUN TestGrowth ---- PASS: TestGrowth (1.66s) +--- PASS: TestGrowth (2.61s) === RUN TestVerifyPanic cache_test.go:138: go: internal cache error: cache verify failed: id=0100000000000000000000000000000000000000000000000000000000000000 changed:<<< >>> old: cb8379ac2098aa165029e3938a51da0bcecfc008fd6795f401178647f96c5b34 3 new: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad 3 ---- PASS: TestVerifyPanic (0.02s) +--- PASS: TestVerifyPanic (0.03s) === RUN TestCacheTrim ---- PASS: TestCacheTrim (0.04s) +--- PASS: TestCacheTrim (0.06s) === RUN TestHash --- PASS: TestHash (0.00s) === RUN TestHashFile --- PASS: TestHashFile (0.00s) PASS -ok github.com/rogpeppe/go-internal/cache 1.748s +ok github.com/rogpeppe/go-internal/cache 2.741s === RUN TestScripts === RUN TestScripts/continue === PAUSE TestScripts/continue @@ -649,20 +685,69 @@ === RUN TestScripts/work === PAUSE TestScripts/work === CONT TestScripts/continue -=== CONT TestScripts/nogo -=== CONT TestScripts/env_var_with_go === CONT TestScripts/skip -=== CONT TestScripts/work +=== CONT TestScripts/error +=== CONT TestScripts/env_var_no_go +=== CONT TestScripts/env_values === CONT TestScripts/update -=== CONT TestScripts/help === CONT TestScripts/simple === CONT TestScripts/noproxy -=== CONT TestScripts/env_var_no_go -=== CONT TestScripts/error -=== CONT TestScripts/env_values +=== CONT TestScripts/work +=== CONT TestScripts/env_var_with_go +=== CONT TestScripts/help +=== CONT TestScripts/nogo + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/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=386 + GOOS=linux + GOROOT=/usr/lib/go-1.23 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.23 + 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.015s) + > dropgofrompath + > ! testscript -v file.txt + [stdout] + WORK=$WORK + PATH=/tmp/testscript-main3795286349/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/testscript2404778891/file.txt/script.txtar:1: unknown command "go" + [stderr] + error running file.txt in $WORK/.tmp/testscript2404778891/file.txt + + [exit status 1] + > stdout 'unknown command "go"' + > stderr 'error running file.txt in' + PASS + === NAME TestScripts/help testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -682,7 +767,7 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # Simply sanity check on help output (0.006s) + # Simply sanity check on help output (0.021s) > ! testscript -help [stderr] The testscript command runs github.com/rogpeppe/go-internal/testscript scripts @@ -812,59 +897,9 @@ > stderr 'Examples' PASS -=== NAME TestScripts/nogo - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/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=386 - GOOS=linux - GOROOT=/usr/lib/go-1.23 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.23 - 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.009s) - > dropgofrompath - > ! testscript -v file.txt - [stdout] - WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/sbin:/sbin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - - > go env - FAIL: $WORK/.tmp/testscript220275401/file.txt/script.txtar:1: unknown command "go" - [stderr] - error running file.txt in $WORK/.tmp/testscript220275401/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-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -893,11 +928,11 @@ > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= - # no GOPROXY, no pass-through, no proxy (0.007s) + # no GOPROXY, no pass-through, no proxy (0.028s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -918,11 +953,11 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.009s) + # no GOPROXY, no pass-through, with proxy (0.010s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -931,7 +966,7 @@ :=: $=$ exe= - GOPROXY=http://127.0.0.1:40499/mod + GOPROXY=http://127.0.0.1:42059/mod GONOSUMDB=* > env BANANA @@ -939,17 +974,17 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:40499/mod + GOPROXY=http://127.0.0.1:42059/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.006s) + # no GOPROXY, with pass-through, no proxy (0.009s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -973,11 +1008,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.007s) + # no GOPROXY, with pass-through, with proxy (0.010s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1003,11 +1038,11 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.006s) + # with GOPROXY, no pass-through, no proxy (0.014s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1028,11 +1063,11 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # with GOPROXY, no pass-through, with proxy (0.007s) + # with GOPROXY, no pass-through, with proxy (0.010s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1041,7 +1076,7 @@ :=: $=$ exe= - GOPROXY=http://127.0.0.1:36241/mod + GOPROXY=http://127.0.0.1:43257/mod GONOSUMDB=* > env BANANA @@ -1049,17 +1084,17 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:36241/mod + GOPROXY=http://127.0.0.1:43257/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.005s) + # with GOPROXY, with pass-through, no proxy (0.010s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1083,11 +1118,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, with pass-through, with proxy (0.009s) + # with GOPROXY, with pass-through, with proxy (0.015s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1116,7 +1151,7 @@ === NAME TestScripts/continue testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1140,17 +1175,17 @@ > unquote file.txt # Running with continue, the testscript command itself # should fail, but we should see the results of executing - # both commands. (0.974s) + # both commands. (0.365s) > ! testscript -continue file.txt [stdout] > grep banana in [in] apple - FAIL: $WORK/.tmp/testscript2605414513/file.txt/script.txtar:1: no match for `banana` found in in + FAIL: $WORK/.tmp/testscript3368068594/file.txt/script.txtar:1: no match for `banana` found in in > grep apple in [stderr] - error running file.txt in $WORK/.tmp/testscript2605414513/file.txt + error running file.txt in $WORK/.tmp/testscript3368068594/file.txt [exit status 1] > stdout 'grep banana in' @@ -1158,9 +1193,9 @@ > stdout 'grep apple in' PASS -=== NAME TestScripts/update +=== NAME TestScripts/work testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1180,28 +1215,18 @@ 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.009s) - > 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.970s) - > testscript -u - in.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.367s) + > unquote file.txt dir/file.txt + > testscript -v -work file.txt dir/file.txt [stdout] - PASS - PASS - $WORK/.tmp/testscript4044413012/in.txt/script.txtar updated - > cmp in.txt res.txt - PASS - -=== NAME TestScripts/noproxy - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + WORK=$WORK + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1218,19 +1243,11 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.23 - GOINTERNALMODPATH=. - GONOSUMDB=* - # 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. (1.011s) - > env GOPROXY=0.1.2.3 - > unquote file.txt - > testscript -v file.txt - [stdout] + > exec true + PASS WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1245,63 +1262,25 @@ GOOS=linux GOROOT=/usr/lib/go-1.23 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=0.1.2.3 + GOPROXY=https://proxy.golang.org,direct goversion=1.23 - > go env - [stdout] - GO111MODULE='' - GOARCH='386' - GOBIN='' - GOCACHE='/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build' - GOENV='/no-home/.config/go/env' - GOEXE='' - GOEXPERIMENT='' - GOFLAGS='' - GOHOSTARCH='386' - GOHOSTOS='linux' - GOINSECURE='' - GOMODCACHE='$WORK/.gopath/pkg/mod' - GONOPROXY='' - GONOSUMDB='' - GOOS='linux' - GOPATH='$WORK/.gopath' - GOPRIVATE='' - GOPROXY='0.1.2.3' - GOROOT='/usr/lib/go-1.23' - GOSUMDB='sum.golang.org' - GOTMPDIR='' - GOTOOLCHAIN='auto' - GOTOOLDIR='/usr/lib/go-1.23/pkg/tool/linux_386' - GOVCS='' - GOVERSION='go1.23.4' - GODEBUG='' - GOTELEMETRY='local' - GOTELEMETRYDIR='/no-home/.config/go/telemetry' - GCCGO='gccgo' - GO386='softfloat' - AR='ar' - CC='gcc' - CXX='g++' - CGO_ENABLED='1' - GOMOD='/dev/null' - GOWORK='' - CGO_CFLAGS='-O2 -g' - CGO_CPPFLAGS='' - CGO_CXXFLAGS='-O2 -g' - CGO_FFLAGS='-O2 -g' - CGO_LDFLAGS='-O2 -g' - PKG_CONFIG='pkg-config' - GOGCCFLAGS='-fPIC -m32 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build1062307479=/tmp/go-build -gno-record-gcc-switches' - - > [!windows] stdout '^GOPROXY=[''"]0.1.2.3[''"]$' - > [windows] stdout '^set GOPROXY=0.1.2.3$' + > exec true PASS + [stderr] + temporary work directory: $WORK/.tmp/testscript1422959841 + temporary work directory for file.txt: $WORK/.tmp/go-test-script3650955836/script-script + temporary work directory for dir/file.txt: $WORK/.tmp/go-test-script2400933653/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-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1321,18 +1300,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. (1.025s) - > unquote file.txt dir/file.txt - > testscript -v -work file.txt dir/file.txt + # should support skip (0.385s) + > unquote file.txt + > testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1350,10 +1323,18 @@ GOPROXY=https://proxy.golang.org,direct goversion=1.23 - > exec true + > go version + [stdout] + go version go1.23.4 linux/386 + + > skip + > stdout 'go version' + > ! stderr .+ PASS - WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + +=== NAME TestScripts/update + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1370,23 +1351,31 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.23 + GOINTERNALMODPATH=. + GONOSUMDB=* - > exec true - PASS + # should support the -update flag (0.000s) + > unquote in.txt res.txt + # Should be an error to use -u with only stdin (0.012s) + > stdin in.txt + > ! testscript -u [stderr] - temporary work directory: $WORK/.tmp/testscript417442518 - temporary work directory for file.txt: $WORK/.tmp/go-test-script2147195369/script-script - temporary work directory for dir/file.txt: $WORK/.tmp/go-test-script90570218/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 + 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.371s) + > testscript -u - in.txt + [stdout] + PASS + PASS + $WORK/.tmp/testscript4166460635/in.txt/script.txtar updated + > cmp in.txt res.txt PASS -=== NAME TestScripts/skip +=== NAME TestScripts/noproxy testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1406,12 +1395,16 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # should support skip (1.032s) + # With no .gomodproxy supporting files, we use the GOPROXY from + # the environment. + # Note that Go 1.21 started quoting with single quotes in "go env", + # where older versions used double quotes. (0.381s) + > env GOPROXY=0.1.2.3 > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1426,21 +1419,63 @@ GOOS=linux GOROOT=/usr/lib/go-1.23 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct + GOPROXY=0.1.2.3 goversion=1.23 - > go version + > go env [stdout] - go version go1.23.4 linux/386 + GO111MODULE='' + GOARCH='386' + GOBIN='' + GOCACHE='/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build' + GOENV='/no-home/.config/go/env' + GOEXE='' + GOEXPERIMENT='' + GOFLAGS='' + GOHOSTARCH='386' + GOHOSTOS='linux' + GOINSECURE='' + GOMODCACHE='$WORK/.gopath/pkg/mod' + GONOPROXY='' + GONOSUMDB='' + GOOS='linux' + GOPATH='$WORK/.gopath' + GOPRIVATE='' + GOPROXY='0.1.2.3' + GOROOT='/usr/lib/go-1.23' + GOSUMDB='sum.golang.org' + GOTMPDIR='' + GOTOOLCHAIN='auto' + GOTOOLDIR='/usr/lib/go-1.23/pkg/tool/linux_386' + GOVCS='' + GOVERSION='go1.23.4' + GODEBUG='' + GOTELEMETRY='local' + GOTELEMETRYDIR='/no-home/.config/go/telemetry' + GCCGO='gccgo' + GO386='softfloat' + AR='ar' + CC='gcc' + CXX='g++' + CGO_ENABLED='1' + GOMOD='/dev/null' + GOWORK='' + CGO_CFLAGS='-O2 -g' + CGO_CPPFLAGS='' + CGO_CXXFLAGS='-O2 -g' + CGO_FFLAGS='-O2 -g' + CGO_LDFLAGS='-O2 -g' + PKG_CONFIG='pkg-config' + GOGCCFLAGS='-fPIC -m32 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build1206374654=/tmp/go-build -gno-record-gcc-switches' - > skip - > stdout 'go version' - > ! stderr .+ + > [!windows] stdout '^GOPROXY=[''"]0.1.2.3[''"]$' + > [windows] stdout '^set GOPROXY=0.1.2.3$' + PASS PASS === NAME TestScripts/simple testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1461,13 +1496,13 @@ GONOSUMDB=* # With .gomodproxy supporting files, any GOPROXY from the - # environment should be overridden by the test proxy. (1.047s) + # environment should be overridden by the test proxy. (0.412s) > env GOPROXY=0.1.2.3 > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1482,7 +1517,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.23 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:36867/mod + GOPROXY=http://127.0.0.1:42419/mod goversion=1.23 GONOSUMDB=* @@ -1508,9 +1543,9 @@ > ! stderr .+ PASS -=== NAME TestScripts/env_values +=== NAME TestScripts/error testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1530,30 +1565,14 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # Test that passing env values, e.g. ENV1=val, works (0.000s) - > unquote test.txt - > env BLAH1= - > env BLAH2=junk - # Normal operation (0.995s) - > 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.051s) - > ! testscript -e BLAH1=rubbish -e BLAH2 -e WORK test.txt + # should support skip (0.000s) + > unquote file.txt + # stdin (0.359s) + > stdin file.txt + > ! testscript -v [stdout] - FAIL: $WORK/.tmp/testscript2919982141/test.txt/script.txtar:0: cannot override WORK variable - [stderr] - error running test.txt in $WORK/.tmp/testscript2919982141/test.txt - - [exit status 1] - > stdout 'cannot override WORK variable' - PASS - -=== NAME TestScripts/error - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + WORK=$WORK + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1570,17 +1589,20 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.23 - GOINTERNALMODPATH=. - GONOSUMDB=* - # should support skip (0.000s) - > unquote file.txt - # stdin (1.011s) - > stdin file.txt - > ! testscript -v + > exec false + [exit status 1] + FAIL: $WORK/.tmp/testscript2707639481/-/script.txtar:1: unexpected command failure + [stderr] + error running in $WORK/.tmp/testscript2707639481/- + + [exit status 1] + > stderr 'error running in' + # file-based (0.093s) + > ! testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1600,17 +1622,17 @@ > exec false [exit status 1] - FAIL: $WORK/.tmp/testscript2030656754/-/script.txtar:1: unexpected command failure + FAIL: $WORK/.tmp/testscript559727209/file.txt/script.txtar:1: unexpected command failure [stderr] - error running in $WORK/.tmp/testscript2030656754/- + error running file.txt in $WORK/.tmp/testscript559727209/file.txt [exit status 1] - > stderr 'error running in' - # file-based (0.053s) - > ! testscript -v file.txt - [stdout] - WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + > stderr 'error running file.txt in' + PASS + +=== NAME TestScripts/env_values + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1627,20 +1649,33 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.23 + GOINTERNALMODPATH=. + GONOSUMDB=* - > exec false - [exit status 1] - FAIL: $WORK/.tmp/testscript852168492/file.txt/script.txtar:1: unexpected command failure + # Test that passing env values, e.g. ENV1=val, works (0.002s) + > unquote test.txt + > env BLAH1= + > env BLAH2=junk + # Normal operation (0.372s) + > 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.107s) + > ! testscript -e BLAH1=rubbish -e BLAH2 -e WORK test.txt + [stdout] + FAIL: $WORK/.tmp/testscript1795278098/test.txt/script.txtar:0: cannot override WORK variable [stderr] - error running file.txt in $WORK/.tmp/testscript852168492/file.txt + error running test.txt in $WORK/.tmp/testscript1795278098/test.txt [exit status 1] - > stderr 'error running file.txt in' + > stdout 'cannot override WORK variable' PASS === NAME TestScripts/env_var_with_go testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1666,14 +1701,14 @@ # the string literal $WORK because testscript rewrites the actual directory # to $WORK. Hence we don't want to expand this script's $WORK in such a comparison. # - # This is the counterpart to env_var_no_go.txt (0.000s) + # This is the counterpart to env_var_no_go.txt (0.001s) > unquote noproxy.txt > unquote withproxy.txt - # Baseline (0.965s) + # Baseline (0.355s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1705,11 +1740,11 @@ > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= - # no GOPROXY, no pass-through, no proxy (0.093s) + # no GOPROXY, no pass-through, no proxy (0.078s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1738,11 +1773,11 @@ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=https://proxy.golang.org,direct$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.045s) + # no GOPROXY, no pass-through, with proxy (0.075s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1757,7 +1792,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.23 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:33777/mod + GOPROXY=http://127.0.0.1:34205/mod goversion=1.23 GONOSUMDB=* @@ -1766,17 +1801,17 @@ > env GOPATH GOPATH=$WORK/.gopath > env GOPROXY - GOPROXY=http://127.0.0.1:33777/mod + GOPROXY=http://127.0.0.1:34205/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.084s) + # no GOPROXY, with pass-through, no proxy (0.061s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1806,11 +1841,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.047s) + # no GOPROXY, with pass-through, with proxy (0.059s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1842,11 +1877,11 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.044s) + # with GOPROXY, no pass-through, no proxy (0.061s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1875,11 +1910,11 @@ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, no pass-through, with proxy (0.043s) + # with GOPROXY, no pass-through, with proxy (0.069s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1894,7 +1929,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.23 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:36329/mod + GOPROXY=http://127.0.0.1:39323/mod goversion=1.23 GONOSUMDB=* @@ -1903,17 +1938,17 @@ > env GOPATH GOPATH=$WORK/.gopath > env GOPROXY - GOPROXY=http://127.0.0.1:36329/mod + GOPROXY=http://127.0.0.1:39323/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.047s) + # with GOPROXY, with pass-through, no proxy (0.059s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1943,11 +1978,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, with pass-through, with proxy (0.044s) + # with GOPROXY, with pass-through, with proxy (0.066s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main1894302435/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3795286349/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1980,21 +2015,21 @@ > ! stderr .+ PASS ---- PASS: TestScripts (0.18s) - --- PASS: TestScripts/help (0.01s) - --- PASS: TestScripts/nogo (0.01s) - --- PASS: TestScripts/env_var_no_go (0.06s) - --- PASS: TestScripts/continue (0.98s) - --- PASS: TestScripts/update (0.98s) - --- PASS: TestScripts/noproxy (1.01s) - --- PASS: TestScripts/work (1.03s) - --- PASS: TestScripts/skip (1.03s) - --- PASS: TestScripts/simple (1.05s) - --- PASS: TestScripts/env_values (1.05s) - --- PASS: TestScripts/error (1.07s) - --- PASS: TestScripts/env_var_with_go (1.41s) +--- PASS: TestScripts (0.07s) + --- PASS: TestScripts/nogo (0.02s) + --- PASS: TestScripts/help (0.02s) + --- PASS: TestScripts/env_var_no_go (0.11s) + --- PASS: TestScripts/continue (0.37s) + --- PASS: TestScripts/work (0.37s) + --- PASS: TestScripts/skip (0.39s) + --- PASS: TestScripts/update (0.39s) + --- PASS: TestScripts/noproxy (0.38s) + --- PASS: TestScripts/simple (0.41s) + --- PASS: TestScripts/error (0.45s) + --- PASS: TestScripts/env_values (0.48s) + --- PASS: TestScripts/env_var_with_go (0.89s) PASS -ok github.com/rogpeppe/go-internal/cmd/testscript 1.598s +ok github.com/rogpeppe/go-internal/cmd/testscript 0.969s ? github.com/rogpeppe/go-internal/cmd/txtar-goproxy [no test files] === RUN TestScripts === RUN TestScripts/encode @@ -2010,7 +2045,7 @@ go proxy: no archive github.com/shurcooL v0.0.0-20171119174359-809beceb2371 === NAME TestScripts/encode testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2294038476/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main573896248/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2025,7 +2060,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.23 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:37519/mod + GOPROXY=http://127.0.0.1:40325/mod goversion=1.23 GONOSUMDB=* @@ -2038,7 +2073,7 @@ === NAME TestScripts/to_stdout testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2294038476/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main573896248/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2053,7 +2088,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.23 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:37519/mod + GOPROXY=http://127.0.0.1:40325/mod goversion=1.23 GONOSUMDB=* @@ -2080,7 +2115,7 @@ === NAME TestScripts/txtar-addmod-self testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main2294038476/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main573896248/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2095,7 +2130,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.23 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:37519/mod + GOPROXY=http://127.0.0.1:40325/mod goversion=1.23 GONOSUMDB=* @@ -2109,12 +2144,12 @@ > grep '-- foobar --' $WORK/out/github.com_gobin-testrepos_simple-main_v1.0.0.txtar PASS ---- PASS: TestScripts (5.09s) - --- PASS: TestScripts/encode (0.15s) - --- PASS: TestScripts/to_stdout (0.65s) - --- PASS: TestScripts/txtar-addmod-self (1.79s) +--- PASS: TestScripts (0.06s) + --- PASS: TestScripts/encode (0.05s) + --- PASS: TestScripts/to_stdout (0.09s) + --- PASS: TestScripts/txtar-addmod-self (0.14s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 6.917s +ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 0.213s === RUN TestScripts === RUN TestScripts/all === PAUSE TestScripts/all @@ -2128,8 +2163,33 @@ === CONT TestScripts/quote === CONT TestScripts/needquote === CONT TestScripts/txtar-savedir-self +=== NAME TestScripts/needquote testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3727103375/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2860702048/bin:/usr/lib/go-1.23/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 blah/withsep + > unquote expect + > txtar-c blah + [stdout] + -- nosep -- + bar + [stderr] + txtar-c: blah/withsep: ignoring file with txtar marker in + > stderr 'txtar-c: blah.withsep: ignoring file with txtar marker in' + > cmp stdout expect + PASS + +=== NAME TestScripts/txtar-savedir-self + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main2860702048/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2159,9 +2219,33 @@ > cmp stdout expect PASS +=== NAME TestScripts/quote + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main2860702048/bin:/usr/lib/go-1.23/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 blah/withsep + > unquote expect + > txtar-c -quote blah + [stdout] + unquote withsep + -- withsep -- + >-- separator -- + >foo + > ! stderr .+ + > cmp stdout expect + PASS + === NAME TestScripts/all testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3727103375/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2860702048/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2173,7 +2257,7 @@ > unquote expect-all > unquote expect-no-all - # Without the -a flag, it should ignore . files. (0.533s) + # Without the -a flag, it should ignore . files. (0.004s) > txtar-c blah [stdout] -- go.mod -- @@ -2189,7 +2273,7 @@ } > ! stderr .+ > cmp stdout expect-no-all - # With the -a flag, it should include them. (0.023s) + # With the -a flag, it should include them. (0.004s) > txtar-c -a blah [stdout] -- .foo/foo -- @@ -2211,61 +2295,13 @@ > cmp stdout expect-all PASS -=== NAME TestScripts/needquote - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3727103375/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - - > unquote blah/withsep - > unquote expect - > txtar-c blah - [stdout] - -- nosep -- - bar - [stderr] - txtar-c: blah/withsep: ignoring file with txtar marker in - > stderr 'txtar-c: blah.withsep: ignoring file with txtar marker in' - > cmp stdout expect - PASS - -=== NAME TestScripts/quote - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3727103375/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - - > unquote blah/withsep - > unquote expect - > txtar-c -quote blah - [stdout] - unquote withsep - -- withsep -- - >-- separator -- - >foo - > ! stderr .+ - > cmp stdout expect - PASS - ---- PASS: TestScripts (0.03s) - --- PASS: TestScripts/txtar-savedir-self (0.56s) - --- PASS: TestScripts/all (0.56s) - --- PASS: TestScripts/needquote (0.68s) - --- PASS: TestScripts/quote (0.99s) +--- PASS: TestScripts (0.00s) + --- PASS: TestScripts/needquote (0.01s) + --- PASS: TestScripts/txtar-savedir-self (0.01s) + --- PASS: TestScripts/quote (0.01s) + --- PASS: TestScripts/all (0.01s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-c 1.105s +ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.016s === RUN TestScripts === RUN TestScripts/extract-dir === PAUSE TestScripts/extract-dir @@ -2277,11 +2313,11 @@ === PAUSE TestScripts/extract === CONT TestScripts/extract-dir === CONT TestScripts/extract-stdin -=== CONT TestScripts/extract === CONT TestScripts/extract-out-of-bounds -=== NAME TestScripts/extract-dir +=== CONT TestScripts/extract +=== NAME TestScripts/extract-stdin testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main4162403092/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2720955798/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2292,14 +2328,15 @@ exe= > unquote file.txtar - > txtar-x -C x/y file.txtar - > cmp x/y/foo expect/foo - > cmp x/y/a/b/bar expect/a/b/bar + > stdin file.txtar + > txtar-x + > cmp foo expect/foo + > cmp a/b/bar expect/a/b/bar PASS -=== NAME TestScripts/extract-stdin +=== NAME TestScripts/extract testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main4162403092/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2720955798/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2310,15 +2347,14 @@ exe= > unquote file.txtar - > stdin file.txtar - > txtar-x + > txtar-x file.txtar > cmp foo expect/foo > cmp a/b/bar expect/a/b/bar PASS -=== NAME TestScripts/extract +=== NAME TestScripts/extract-dir testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main4162403092/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2720955798/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2329,14 +2365,14 @@ exe= > unquote file.txtar - > txtar-x file.txtar - > cmp foo expect/foo - > cmp a/b/bar expect/a/b/bar + > txtar-x -C x/y file.txtar + > cmp x/y/foo expect/foo + > cmp x/y/a/b/bar expect/a/b/bar PASS === NAME TestScripts/extract-out-of-bounds testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main4162403092/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2720955798/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2360,12 +2396,12 @@ PASS --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/extract-dir (0.01s) --- PASS: TestScripts/extract-stdin (0.01s) --- PASS: TestScripts/extract (0.01s) - --- PASS: TestScripts/extract-out-of-bounds (0.74s) + --- PASS: TestScripts/extract-dir (0.01s) + --- PASS: TestScripts/extract-out-of-bounds (0.02s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-x 1.501s +ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.036s === RUN Test === RUN Test/allnew.txt === RUN Test/allold.txt @@ -2379,7 +2415,7 @@ === RUN Test/same.txt === RUN Test/start.txt === RUN Test/triv.txt ---- PASS: Test (0.01s) +--- PASS: Test (0.02s) --- PASS: Test/allnew.txt (0.00s) --- PASS: Test/allold.txt (0.00s) --- PASS: Test/basic.txt (0.00s) @@ -2389,21 +2425,21 @@ --- 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/same.txt (0.01s) --- PASS: Test/start.txt (0.00s) --- PASS: Test/triv.txt (0.00s) PASS -ok github.com/rogpeppe/go-internal/diff 0.098s +ok github.com/rogpeppe/go-internal/diff 0.024s === 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.184s +ok github.com/rogpeppe/go-internal/dirhash 0.010s === RUN TestCompare --- PASS: TestCompare (0.00s) === RUN TestOrder @@ -2411,23 +2447,16 @@ === RUN TestInterface --- PASS: TestInterface (0.00s) PASS -ok github.com/rogpeppe/go-internal/fmtsort 0.182s +ok github.com/rogpeppe/go-internal/fmtsort 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] -? github.com/rogpeppe/go-internal/modfile [no test files] -? github.com/rogpeppe/go-internal/module [no test files] -? github.com/rogpeppe/go-internal/internal/os/execpath [no test files] -? github.com/rogpeppe/go-internal/semver [no test files] -? github.com/rogpeppe/go-internal/testenv [no test files] -? github.com/rogpeppe/go-internal/testscript/internal/pty [no test files] -? github.com/rogpeppe/go-internal/robustio [no test files] -? github.com/rogpeppe/go-internal/renameio [no test files] === RUN TestScripts === RUN TestScripts/list === PAUSE TestScripts/list === CONT TestScripts/list testscript.go:558: WORK=$WORK - PATH=/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2442,7 +2471,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.23 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:41141/mod + GOPROXY=http://127.0.0.1:36379/mod goversion=1.23 GONOSUMDB=* @@ -2467,19 +2496,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.009s) + # It's for that reason that we moved the default GOPATH to ${WORK}/.gopath. (0.008s) > go mod tidy [stderr] go: warning: "all" matched no packages PASS ---- PASS: TestScripts (0.51s) - --- PASS: TestScripts/list (0.07s) +--- PASS: TestScripts (0.08s) + --- PASS: TestScripts/list (0.08s) PASS -ok github.com/rogpeppe/go-internal/goproxytest 0.623s +ok github.com/rogpeppe/go-internal/goproxytest 0.173s === RUN TestInitGoEnv ---- PASS: TestInitGoEnv (0.48s) +--- PASS: TestInitGoEnv (0.06s) === RUN TestSimple === RUN TestSimple/cover === PAUSE TestSimple/cover @@ -2491,7 +2520,7 @@ === CONT TestSimple/version === CONT TestSimple/env testscript.go:558: WORK=$WORK - PATH=/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2511,7 +2540,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.039s) + # but GOCACHE is. (0.015s) > go env [stdout] GO111MODULE='' @@ -2556,7 +2585,7 @@ CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' - GOGCCFLAGS='-fPIC -m32 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build3379527700=/tmp/go-build -gno-record-gcc-switches' + GOGCCFLAGS='-fPIC -m32 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build1202423302=/tmp/go-build -gno-record-gcc-switches' > stdout GOPATH=.*${WORK@R} > stdout GOMODCACHE=.*${WORK@R} @@ -2565,7 +2594,7 @@ === NAME TestSimple/version testscript.go:558: WORK=$WORK - PATH=/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2596,7 +2625,7 @@ === NAME TestSimple/cover testscript.go:1163: testscript.go:558: WORK=$WORK - PATH=/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2617,25 +2646,25 @@ > unquote scripts/exec.txt # The module uses testscript itself. - # Use the checked out module, based on where the test binary ran. (0.437s) + # Use the checked out module, based on where the test binary ran. (0.311s) > 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]:37003->[::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]:49569->[::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.08s) - --- PASS: TestSimple/env (0.04s) + --- PASS: TestSimple/env (0.02s) --- PASS: TestSimple/version (0.11s) - --- SKIP: TestSimple/cover (0.44s) + --- SKIP: TestSimple/cover (0.31s) PASS -ok github.com/rogpeppe/go-internal/gotooltest 1.065s +ok github.com/rogpeppe/go-internal/gotooltest 0.464s === RUN TestReadImports --- PASS: TestReadImports (0.00s) === RUN TestReadComments @@ -2645,11 +2674,11 @@ === RUN TestReadFailuresIgnored --- PASS: TestReadFailuresIgnored (0.00s) === RUN TestScan ---- PASS: TestScan (0.02s) +--- PASS: TestScan (0.00s) === RUN TestScanStar --- PASS: TestScanStar (0.00s) PASS -ok github.com/rogpeppe/go-internal/imports 0.084s +ok github.com/rogpeppe/go-internal/imports 0.010s === RUN TestAlmostEqual === PAUSE TestAlmostEqual === CONT TestAlmostEqual @@ -2667,7 +2696,7 @@ === RUN FuzzAlmostEqual/5bd9cd4e8c887808 === RUN FuzzAlmostEqual/b323cef1fc26e507 === RUN FuzzAlmostEqual/c6edde4256d6f5eb ---- PASS: FuzzAlmostEqual (0.01s) +--- PASS: FuzzAlmostEqual (0.00s) --- PASS: FuzzAlmostEqual/seed#0 (0.00s) --- PASS: FuzzAlmostEqual/seed#1 (0.00s) --- PASS: FuzzAlmostEqual/seed#2 (0.00s) @@ -2681,7 +2710,14 @@ --- PASS: FuzzAlmostEqual/b323cef1fc26e507 (0.00s) --- PASS: FuzzAlmostEqual/c6edde4256d6f5eb (0.00s) PASS -ok github.com/rogpeppe/go-internal/internal/misspell 0.076s +ok github.com/rogpeppe/go-internal/internal/misspell 0.007s +? github.com/rogpeppe/go-internal/modfile [no test files] +? github.com/rogpeppe/go-internal/module [no test files] +? github.com/rogpeppe/go-internal/renameio [no test files] +? github.com/rogpeppe/go-internal/robustio [no test files] +? github.com/rogpeppe/go-internal/semver [no test files] +? github.com/rogpeppe/go-internal/testenv [no test files] +? github.com/rogpeppe/go-internal/testscript/internal/pty [no test files] === RUN TestMutexExcludes === PAUSE TestMutexExcludes === RUN TestReadWaitsForLock @@ -2689,22 +2725,23 @@ === RUN TestCanLockExistingFile === PAUSE TestCanLockExistingFile === RUN TestSpuriousEDEADLK ---- PASS: TestSpuriousEDEADLK (0.03s) +--- PASS: TestSpuriousEDEADLK (0.02s) === RUN TestTransform ---- PASS: TestTransform (0.65s) +--- PASS: TestTransform (0.66s) === CONT TestMutexExcludes === CONT TestCanLockExistingFile -=== NAME TestMutexExcludes - lockedfile_test.go:85: mu := MutexAt(_) === CONT TestReadWaitsForLock === NAME TestMutexExcludes + lockedfile_test.go:85: mu := MutexAt(_) lockedfile_test.go:91: unlock, _ := mu.Lock() lockedfile_test.go:94: mu2 := MutexAt(mu.Path) === NAME TestReadWaitsForLock lockedfile_test.go:134: WriteString("part 1\n") = - lockedfile_test.go:156: WriteString("part 2\n") = === NAME TestMutexExcludes lockedfile_test.go:107: unlock() +=== NAME TestReadWaitsForLock + lockedfile_test.go:156: WriteString("part 2\n") = +=== NAME TestMutexExcludes lockedfile_test.go:102: unlock2, _ := mu2.Lock() lockedfile_test.go:103: unlock2() === NAME TestReadWaitsForLock @@ -2713,7 +2750,7 @@ --- PASS: TestMutexExcludes (0.01s) --- PASS: TestReadWaitsForLock (0.01s) PASS -ok github.com/rogpeppe/go-internal/lockedfile 0.726s +ok github.com/rogpeppe/go-internal/lockedfile 0.699s === RUN TestLockExcludesLock === PAUSE TestLockExcludesLock === RUN TestLockExcludesRLock @@ -2721,67 +2758,70 @@ === RUN TestRLockExcludesOnlyLock === PAUSE TestRLockExcludesOnlyLock === RUN TestLockNotDroppedByExecCommand - filelock_test.go:188: fd 6 = /tmp/TestLockNotDroppedByExecCommand3301720266 + filelock_test.go:188: fd 6 = /tmp/TestLockNotDroppedByExecCommand578837619 filelock_test.go:191: Lock(fd 6) = - filelock_test.go:193: fd 7 = os.Open("/tmp/TestLockNotDroppedByExecCommand3301720266") + filelock_test.go:193: fd 7 = os.Open("/tmp/TestLockNotDroppedByExecCommand578837619") filelock_test.go:204: Lock(fd 7) is blocked (as expected) filelock_test.go:205: Unlock(fd 6) = asm_386.s:1393: Lock(fd 7) = filelock_test.go:207: Unlock(fd 7) = --- PASS: TestLockNotDroppedByExecCommand (0.02s) === CONT TestLockExcludesLock - filelock_test.go:121: fd 6 = /tmp/TestLockExcludesLock3970198431 - filelock_test.go:124: fd 7 = os.Open("/tmp/TestLockExcludesLock3970198431") - filelock_test.go:127: Lock(fd 6) = === CONT TestRLockExcludesOnlyLock === CONT TestLockExcludesRLock +=== NAME TestLockExcludesLock + filelock_test.go:121: fd 6 = /tmp/TestLockExcludesLock4032460565 + filelock_test.go:124: fd 8 = os.Open("/tmp/TestLockExcludesLock4032460565") + filelock_test.go:127: Lock(fd 6) = +=== NAME TestLockExcludesRLock + filelock_test.go:137: fd 7 = /tmp/TestLockExcludesRLock2614807059 + filelock_test.go:140: fd 10 = os.Open("/tmp/TestLockExcludesRLock2614807059") === NAME TestRLockExcludesOnlyLock - filelock_test.go:153: fd 8 = /tmp/TestRLockExcludesOnlyLock283065499 - filelock_test.go:155: RLock(fd 8) = + filelock_test.go:153: fd 9 = /tmp/TestRLockExcludesOnlyLock1370051604 === NAME TestLockExcludesRLock - filelock_test.go:137: fd 9 = /tmp/TestLockExcludesRLock2599319537 + filelock_test.go:143: Lock(fd 7) = === NAME TestRLockExcludesOnlyLock - filelock_test.go:157: fd 10 = os.Open("/tmp/TestRLockExcludesOnlyLock283065499") - filelock_test.go:171: RLock(fd 10) = + filelock_test.go:155: RLock(fd 9) = + filelock_test.go:157: fd 11 = os.Open("/tmp/TestRLockExcludesOnlyLock1370051604") + filelock_test.go:171: RLock(fd 11) = + filelock_test.go:175: fd 12 = os.Open("/tmp/TestRLockExcludesOnlyLock1370051604") +=== NAME TestLockExcludesLock + filelock_test.go:128: Lock(fd 8) is blocked (as expected) === NAME TestLockExcludesRLock - filelock_test.go:140: fd 11 = os.Open("/tmp/TestLockExcludesRLock2599319537") + filelock_test.go:144: RLock(fd 10) is blocked (as expected) === NAME TestRLockExcludesOnlyLock - filelock_test.go:175: fd 12 = os.Open("/tmp/TestRLockExcludesOnlyLock283065499") + filelock_test.go:177: Lock(fd 12) is blocked (as expected) === NAME TestLockExcludesRLock - filelock_test.go:143: Lock(fd 9) = + filelock_test.go:145: Unlock(fd 7) = +=== NAME TestRLockExcludesOnlyLock + filelock_test.go:179: Unlock(fd 11) = === NAME TestLockExcludesLock - filelock_test.go:128: Lock(fd 7) is blocked (as expected) filelock_test.go:129: Unlock(fd 6) = === 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 9) = === NAME TestLockExcludesLock - asm_386.s:1393: Lock(fd 7) = - filelock_test.go:131: Unlock(fd 7) = + asm_386.s:1393: Lock(fd 8) = + filelock_test.go:131: Unlock(fd 8) = === NAME TestRLockExcludesOnlyLock - filelock_test.go:181: Unlock(fd 8) = + asm_386.s:1393: Lock(fd 12) = --- PASS: TestLockExcludesLock (0.01s) -=== NAME TestLockExcludesRLock - filelock_test.go:144: RLock(fd 11) is blocked (as expected) - filelock_test.go:145: Unlock(fd 9) = === NAME TestRLockExcludesOnlyLock - asm_386.s:1393: Lock(fd 12) = filelock_test.go:184: Unlock(fd 12) = -=== NAME TestLockExcludesRLock - asm_386.s:1393: RLock(fd 11) = - filelock_test.go:147: Unlock(fd 11) = --- PASS: TestRLockExcludesOnlyLock (0.01s) +=== NAME TestLockExcludesRLock + asm_386.s:1393: RLock(fd 10) = + filelock_test.go:147: Unlock(fd 10) = --- PASS: TestLockExcludesRLock (0.01s) PASS -ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.090s +ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.031s === RUN TestWork ---- PASS: TestWork (0.04s) +--- PASS: TestWork (0.05s) === RUN TestWorkParallel --- PASS: TestWorkParallel (0.00s) === RUN TestCache --- PASS: TestCache (0.00s) PASS -ok github.com/rogpeppe/go-internal/par 0.079s +ok github.com/rogpeppe/go-internal/par 0.063s === RUN TestCRLFInput === RUN TestCRLFInput/_ === RUN TestCRLFInput/_/script @@ -2867,22 +2907,225 @@ === RUN TestScripts/wait === PAUSE TestScripts/wait === CONT TestScripts/big_diff -=== CONT TestScripts/wait +=== CONT TestScripts/readfile +=== CONT TestScripts/testscript_stdout_stderr_error +=== CONT TestScripts/exec_path_change +=== CONT TestScripts/interrupt +=== CONT TestScripts/testscript_duplicate_name +=== CONT TestScripts/setupfiles +=== CONT TestScripts/evalsymlink +=== CONT TestScripts/defer +=== CONT TestScripts/cpstdout +=== CONT TestScripts/cond +=== CONT TestScripts/commandstatus +=== CONT TestScripts/command +=== 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/cmpenv +=== 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/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/cmpenv + testscript.go:558: > env $=$ + > cmpenv file1 file2 + PASS + +=== CONT TestScripts/cmd_stdout_stderr +=== CONT TestScripts/nothing +=== NAME TestScripts/defer + testscript.go:558: > testdefer + > testdefer + > testdefer + PASS + +=== 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/pty +=== NAME TestScripts/cpstdout + testscript.go:558: > [!exec:cat] stop + # hello world (0.000s) + > exec cat hello.text + [stdout] + hello world + > cp stdout got + > cmp got hello.text + > ! cmp got different.text + > exists got + > mv got new + > ! exists got + > cmp new hello.text + PASS + === CONT TestScripts/values testscript.go:558: > test-values PASS -=== CONT TestScripts/pty +=== CONT TestScripts/wait +=== CONT TestScripts/stdin +=== CONT TestScripts/exists +=== 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/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/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/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/testscript_logging +=== 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/hello +=== 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/evalsymlink + testscript.go:558: # If ioutil.TempDir returns a sym linked dir (default behaviour in macOS for example) the + # matcher will have problems with external programs that uses the real path. + # This script tests that $WORK is matched in a consistent way (also see #79). (0.000s) + > [windows] skip + > exec pwd + [stdout] + $WORK + > stdout ^$WORK$ + > exec pwd -P + [stdout] + $WORK + > stdout ^$WORK$ + PASS + +=== CONT TestScripts/testscript_notfound +=== CONT TestScripts/execguard === CONT TestScripts/testscript_explicit_exec +=== CONT TestScripts/testscript_update_script_actual_is_file +=== CONT TestScripts/testscript_update_script_expected_not_in_archive +=== 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/commandstatus + testscript.go:558: > ! status 1 + [exit status 1] + > ! status 2 + [exit status 2] + > status 0 + PASS + +=== CONT TestScripts/testscript_update_script === CONT TestScripts/testscript_update_script_stderr -=== CONT TestScripts/evalsymlink -=== CONT TestScripts/testscript_update_script_quote -=== CONT TestScripts/setenv -=== CONT TestScripts/nothing -=== CONT TestScripts/long_diff -=== CONT TestScripts/stdin -=== CONT TestScripts/setupfiles +=== 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/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) @@ -4951,7 +5194,7 @@ > env WORK=$WORK - PATH=/tmp/testscript-main3545957311/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3534547548/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -4964,75 +5207,45 @@ > cmpenv stdout stdout.golden PASS -=== NAME TestScripts/setupfiles - testscript.go:558: # check that the Setup function saw the unarchived files, - # including the temp directory that's always created. (0.000s) - > setup-filenames .tmp a b - PASS - -=== CONT TestScripts/cmpenv -=== CONT TestScripts/regexpquote -=== CONT TestScripts/commandstatus -=== NAME TestScripts/testscript_update_script_quote - testscript.go:558: > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript -update scripts +=== NAME TestScripts/execguard + testscript.go:558: > [exec:nosuchcommand] exec nosuchcommand + > [!exec:cat] stop + > exec cat foo [stdout] - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt - PASS - -=== CONT TestScripts/defer -=== NAME TestScripts/regexpquote - testscript.go:558: > env XXX='hello)' - > grep ^${XXX@R}$ file.txt - PASS - -=== CONT TestScripts/cpstdout -=== NAME TestScripts/defer - testscript.go:558: > testdefer - > testdefer - > testdefer + foo + > stdout 'foo\n' PASS -=== CONT TestScripts/cmd_stdout_stderr -=== CONT TestScripts/command -=== CONT TestScripts/cond -=== CONT TestScripts/interrupt -=== 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] +=== CONT TestScripts/setenv +=== CONT TestScripts/long_diff +=== CONT TestScripts/regexpquote +=== NAME TestScripts/setenv + testscript.go:558: > setSpecialVal + > exists $SPECIALVAL.txt + > ensureSpecialVal PASS - > testscript scripts-explicit +=== CONT TestScripts/testscript_update_script_quote +=== NAME TestScripts/testscript_notfound + testscript.go:558: # Check that unknown commands output a useful error message (0.000s) + > ! testscript notfound [stdout] - PASS + > notexist + FAIL: $WORK/notfound/script.txt:1: unknown command "notexist" - > ! testscript -explicit-exec scripts-implicit + > stdout 'unknown command "notexist"' + > ! testscript negation [stdout] - > fprintargs stdout right - FAIL: $WORK/scripts-implicit/testscript.txt:1: use 'exec fprintargs' rather than 'fprintargs' (because RequireExplicitExec is enabled) + > !exists file + FAIL: $WORK/negation/script.txt:1: unknown command "!exists" (did you mean "! exists"?) - > testscript -explicit-exec scripts-explicit + > stdout 'unknown command "!exists" \(did you mean "! exists"\?\)' + > ! testscript misspelled [stdout] - PASS - - PASS + > exits file + FAIL: $WORK/misspelled/script.txt:1: unknown command "exits" (did you mean "exists"?) -=== CONT TestScripts/testscript_update_script -=== CONT TestScripts/testscript_update_script_expected_not_in_archive -=== CONT TestScripts/testscript_duplicate_name -=== CONT TestScripts/hello -=== NAME TestScripts/nothing - testscript.go:558: # Intentionally blank file, used to test that -testwork doesn't remove the work directory (0.000s) + > stdout 'unknown command "exits" \(did you mean "exists"\?\)' PASS === NAME TestScripts/long_diff @@ -5056,7 +5269,7 @@ > env WORK=$WORK - PATH=/tmp/testscript-main3545957311/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main3534547548/bin:/usr/lib/go-1.23/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -5069,7 +5282,6 @@ > cmpenv stdout stdout.golden PASS -=== CONT TestScripts/readfile === NAME TestScripts/testscript_update_script_stderr testscript.go:558: > unquote scripts/testscript.txt > unquote testscript-new.txt @@ -5081,114 +5293,32 @@ > cmp scripts/testscript.txt testscript-new.txt PASS -=== NAME TestScripts/cmpenv - testscript.go:558: > env $=$ - > cmpenv file1 file2 - PASS - -=== NAME TestScripts/setenv - testscript.go:558: > setSpecialVal - > exists $SPECIALVAL.txt - > ensureSpecialVal - PASS - -=== CONT TestScripts/testscript_update_script_actual_is_file -=== NAME TestScripts/pty - testscript.go:558: > [!linux] [!darwin] skip - > [darwin] skip # https://go.dev/issue/61779 - > ttyin secretwords.txt - > terminalprompt - > ttyout 'magic words' - > ! stderr . - > ! stdout . - PASS - -=== CONT TestScripts/execguard -=== NAME TestScripts/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/evalsymlink - testscript.go:558: # If ioutil.TempDir returns a sym linked dir (default behaviour in macOS for example) the - # matcher will have problems with external programs that uses the real path. - # This script tests that $WORK is matched in a consistent way (also see #79). (0.000s) - > [windows] skip - > exec pwd - [stdout] - $WORK - > stdout ^$WORK$ - > exec pwd -P - [stdout] - $WORK - > stdout ^$WORK$ - PASS - -=== CONT TestScripts/exists -=== CONT TestScripts/exec_path_change -=== CONT TestScripts/testscript_stdout_stderr_error -=== CONT TestScripts/testscript_notfound -=== 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/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 +=== NAME TestScripts/regexpquote + testscript.go:558: > env XXX='hello)' + > grep ^${XXX@R}$ file.txt PASS -=== NAME TestScripts/command - testscript.go:558: > printargs a b 'c d' +=== 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] - ["printargs" "a" "b" "c d"] - > stdout '\["printargs" "a" "b" "c d"\]\n' - PASS - -=== NAME TestScripts/testscript_duplicate_name - testscript.go:558: # Check that RequireUniqueNames works; - # it should reject txtar archives with duplicate names as defined by the host system. (0.000s) - > unquote scripts-normalized/testscript.txt - > testscript scripts-normalized + > fprintargs stdout right [stdout] - PASS + right + > cp file expect + > cmp stdout expect + diff stdout expect + --- stdout + +++ expect + @@ -1,1 +1,1 @@ + -right + +wrong - > ! testscript -unique-names scripts-normalized - [stdout] - FAIL: $WORK/scripts-normalized/testscript.txt:0: dir/../file would overwrite $WORK/file (because RequireUniqueNames is enabled) + FAIL: $WORK/scripts/testscript.txt:3: stdout and expect differ - > stdout '.* would overwrite .* \(because RequireUniqueNames is enabled\)' + > cmp scripts/testscript.txt unchanged PASS === NAME TestScripts/stdin @@ -5215,49 +5345,7 @@ > stdout hello PASS -=== NAME TestScripts/testscript_notfound - testscript.go:558: # Check that unknown commands output a useful error message (0.000s) - > ! testscript notfound - [stdout] - > notexist - FAIL: $WORK/notfound/script.txt:1: unknown command "notexist" - - > stdout 'unknown command "notexist"' - > ! testscript negation - [stdout] - > !exists file - FAIL: $WORK/negation/script.txt:1: unknown command "!exists" (did you mean "! exists"?) - - > stdout 'unknown command "!exists" \(did you mean "! exists"\?\)' - > ! testscript misspelled - [stdout] - > exits file - FAIL: $WORK/misspelled/script.txt:1: unknown command "exits" (did you mean "exists"?) - - > stdout 'unknown command "exits" \(did you mean "exists"\?\)' - PASS - -=== NAME TestScripts/testscript_stdout_stderr_error - testscript.go:558: # Verify that stdout and stderr get set event when a user-builtin - # command aborts. Note that we need to assert against stdout - # because our meta testscript command sees only a single log. (0.000s) - > unquote scripts/testscript.txt - > ! testscript -v scripts - [stdout] - > printargs hello world - [stdout] - ["printargs" "hello" "world"] - > echoandexit 1 'this is stdout' 'this is stderr' - [stdout] - this is stdout - [stderr] - this is stderr - FAIL: $WORK/scripts/testscript.txt:2: told to exit with code 1 - - > cmpenv stdout stdout.golden - PASS - -=== NAME TestScripts/testscript_update_script_actual_is_file +=== NAME TestScripts/testscript_update_script_quote testscript.go:558: > unquote scripts/testscript.txt > unquote testscript-new.txt > testscript -update scripts @@ -5268,94 +5356,63 @@ > cmp scripts/testscript.txt testscript-new.txt 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 +=== 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 [stdout] - hello world - > stdout 'hello world\n' - > ! stderr . - PASS - -=== NAME TestScripts/commandstatus - testscript.go:558: > ! status 1 - [exit status 1] - > ! status 2 - [exit status 2] - > status 0 - 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 + hello stdout from fprintargs + > stdout 'hello stdout from fprintargs' + > echoandexit 0 + > stdout 'hello stdout from fprintargs' + # Verify that when we don't update stderr when we don't attempt to write via Stderr() (0.000s) + > fprintargs stderr hello stderr from fprintargs + [stderr] + hello stderr from fprintargs + > stderr 'hello stderr from fprintargs' + > echoandexit 0 + > stderr 'hello stderr from fprintargs' + # Verify that we do update stdout when we attempt to write via Stdout() or Stderr() (0.000s) + > fprintargs stdout hello stdout from fprintargs [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/interrupt - testscript.go:558: > [windows] skip - > signalcatcher & - > waitfile catchsignal - > interrupt - > wait - [background] signalcatcher: exit status 0 + hello stdout from fprintargs + > stdout 'hello stdout from fprintargs' + > ! stderr .+ + > echoandexit 0 'hello stdout from echoandexit' [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 + hello stdout from echoandexit + > stdout 'hello stdout from echoandexit' + > ! stderr .+ + > fprintargs stdout hello stdout from fprintargs [stdout] - > fprintargs stdout right + hello stdout from fprintargs + > stdout 'hello stdout from fprintargs' + > ! stderr .+ + > echoandexit 0 '' 'hello stderr from echoandexit' + [stderr] + hello stderr from echoandexit + > ! stdout .+ + > stderr 'hello stderr from echoandexit' + # Verify that we do update stderr when we attempt to write via Stdout() or Stderr() (0.000s) + > fprintargs stderr hello stderr from fprintargs + [stderr] + hello stderr from fprintargs + > ! stdout .+ + > stderr 'hello stderr from fprintargs' + > echoandexit 0 'hello stdout from echoandexit' [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/readfile - testscript.go:558: > fprintargs stdout stdout + hello stdout from echoandexit + > stdout 'hello stdout from echoandexit' + > ! stderr .+ + > fprintargs stdout hello stdout from fprintargs [stdout] - stdout - > testreadfile stdout - > fprintargs stderr stderr + hello stdout from fprintargs + > stdout 'hello stdout from fprintargs' + > ! stderr .+ + > echoandexit 0 '' 'hello stderr from echoandexit' [stderr] - stderr - > testreadfile stderr - > testreadfile x/somefile + hello stderr from echoandexit + > ! stdout .+ + > stderr 'hello stderr from echoandexit' PASS === NAME TestScripts/wait @@ -5413,63 +5470,46 @@ [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 - [stdout] - hello stdout from fprintargs - > stdout 'hello stdout from fprintargs' - > echoandexit 0 - > stdout 'hello stdout from fprintargs' - # Verify that when we don't update stderr when we don't attempt to write via Stderr() (0.000s) - > fprintargs stderr hello stderr from fprintargs - [stderr] - hello stderr from fprintargs - > stderr 'hello stderr from fprintargs' - > echoandexit 0 - > stderr 'hello stderr from fprintargs' - # Verify that we do update stdout when we attempt to write via Stdout() or Stderr() (0.000s) - > fprintargs stdout hello stdout from fprintargs +=== 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] - hello stdout from fprintargs - > stdout 'hello stdout from fprintargs' - > ! stderr .+ - > echoandexit 0 'hello stdout from echoandexit' + 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/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] - hello stdout from echoandexit - > stdout 'hello stdout from echoandexit' - > ! stderr .+ - > fprintargs stdout hello stdout from fprintargs + PASS + + > testscript scripts-explicit [stdout] - hello stdout from fprintargs - > stdout 'hello stdout from fprintargs' - > ! stderr .+ - > echoandexit 0 '' 'hello stderr from echoandexit' - [stderr] - hello stderr from echoandexit - > ! stdout .+ - > stderr 'hello stderr from echoandexit' - # Verify that we do update stderr when we attempt to write via Stdout() or Stderr() (0.000s) - > fprintargs stderr hello stderr from fprintargs - [stderr] - hello stderr from fprintargs - > ! stdout .+ - > stderr 'hello stderr from fprintargs' - > echoandexit 0 'hello stdout from echoandexit' + PASS + + > ! testscript -explicit-exec scripts-implicit [stdout] - hello stdout from echoandexit - > stdout 'hello stdout from echoandexit' - > ! stderr .+ - > fprintargs stdout hello stdout from fprintargs + > 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] - hello stdout from fprintargs - > stdout 'hello stdout from fprintargs' - > ! stderr .+ - > echoandexit 0 '' 'hello stderr from echoandexit' - [stderr] - hello stderr from echoandexit - > ! stdout .+ - > stderr 'hello stderr from echoandexit' + PASS + PASS === NAME TestScripts/testscript_logging @@ -5586,49 +5626,49 @@ > stdout 'This is not go' PASS ---- PASS: TestScripts (0.01s) +--- PASS: TestScripts (0.00s) + --- PASS: TestScripts/setupfiles (0.00s) + --- PASS: TestScripts/testscript_duplicate_name (0.00s) + --- PASS: TestScripts/cmpenv (0.00s) + --- PASS: TestScripts/defer (0.01s) + --- PASS: TestScripts/cpstdout (0.03s) + --- PASS: TestScripts/nothing (0.03s) --- PASS: TestScripts/values (0.00s) - --- PASS: TestScripts/big_diff (0.05s) - --- PASS: TestScripts/setupfiles (0.03s) - --- PASS: TestScripts/regexpquote (0.00s) - --- PASS: TestScripts/testscript_update_script_quote (0.06s) - --- PASS: TestScripts/defer (0.06s) - --- PASS: TestScripts/cond (0.06s) - --- PASS: TestScripts/evalsymlink (0.13s) - --- PASS: TestScripts/setenv (0.13s) - --- PASS: TestScripts/pty (0.13s) - --- PASS: TestScripts/cmpenv (0.09s) - --- PASS: TestScripts/nothing (0.12s) - --- PASS: TestScripts/cpstdout (0.06s) - --- PASS: TestScripts/long_diff (0.12s) - --- PASS: TestScripts/testscript_update_script_stderr (0.13s) + --- PASS: TestScripts/cond (0.03s) + --- PASS: TestScripts/testscript_stdout_stderr_error (0.04s) + --- PASS: TestScripts/pty (0.03s) + --- PASS: TestScripts/interrupt (0.04s) --- PASS: TestScripts/exists (0.01s) - --- PASS: TestScripts/command (0.07s) - --- PASS: TestScripts/testscript_explicit_exec (0.14s) - --- PASS: TestScripts/stdin (0.13s) - --- PASS: TestScripts/testscript_notfound (0.01s) - --- PASS: TestScripts/testscript_duplicate_name (0.03s) - --- PASS: TestScripts/testscript_stdout_stderr_error (0.03s) - --- PASS: TestScripts/execguard (0.05s) - --- PASS: TestScripts/hello (0.04s) - --- PASS: TestScripts/commandstatus (0.11s) - --- PASS: TestScripts/testscript_update_script_actual_is_file (0.05s) - --- PASS: TestScripts/testscript_update_script (0.05s) - --- PASS: TestScripts/interrupt (0.11s) - --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.05s) - --- PASS: TestScripts/readfile (0.06s) - --- PASS: TestScripts/wait (0.19s) - --- PASS: TestScripts/cmd_stdout_stderr (0.14s) - --- PASS: TestScripts/testscript_logging (0.41s) - --- PASS: TestScripts/exec_path_change (14.69s) + --- PASS: TestScripts/readfile (0.04s) + --- PASS: TestScripts/command (0.04s) + --- PASS: TestScripts/evalsymlink (0.04s) + --- PASS: TestScripts/hello (0.01s) + --- PASS: TestScripts/commandstatus (0.05s) + --- PASS: TestScripts/testscript_update_script_actual_is_file (0.01s) + --- PASS: TestScripts/big_diff (0.06s) + --- PASS: TestScripts/execguard (0.01s) + --- PASS: TestScripts/setenv (0.00s) + --- PASS: TestScripts/testscript_notfound (0.02s) + --- PASS: TestScripts/long_diff (0.01s) + --- PASS: TestScripts/testscript_update_script_stderr (0.01s) + --- PASS: TestScripts/regexpquote (0.01s) + --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.02s) + --- PASS: TestScripts/stdin (0.03s) + --- PASS: TestScripts/testscript_update_script_quote (0.01s) + --- PASS: TestScripts/cmd_stdout_stderr (0.06s) + --- PASS: TestScripts/wait (0.04s) + --- PASS: TestScripts/testscript_update_script (0.02s) + --- PASS: TestScripts/testscript_explicit_exec (0.03s) + --- PASS: TestScripts/testscript_logging (0.10s) + --- PASS: TestScripts/exec_path_change (7.22s) === RUN TestTestwork ---- PASS: TestTestwork (6.00s) +--- PASS: TestTestwork (2.01s) === 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/4103045662/script-nothing + testscript.go:558: WORK=/tmp/3915983130/script-nothing # Intentionally empty test script; used to test Params.WorkdirRoot (0.000s) PASS @@ -5640,7 +5680,7 @@ === RUN TestUNIX2DOS --- PASS: TestUNIX2DOS (0.00s) PASS -ok github.com/rogpeppe/go-internal/testscript 20.866s +ok github.com/rogpeppe/go-internal/testscript 9.251s === RUN Test === RUN Test/basic === RUN Test/basicCRLF @@ -5668,7 +5708,7 @@ --- PASS: TestQuote/bad_data (0.00s) --- PASS: TestQuote/no_final_newline (0.00s) PASS -ok github.com/rogpeppe/go-internal/txtar 0.042s +ok github.com/rogpeppe/go-internal/txtar 0.006s patch -R -p1 -i debian/0001-Allow-TestSimple-cover-to-PASS.patch patching file _build/src/github.com/rogpeppe/go-internal/testscript/testscript.go Hunk #1 succeeded at 1155 (offset 57 lines). @@ -5690,11 +5730,11 @@ dh_fixperms -O--builddirectory=_build -O--buildsystem=golang dh_missing -O--builddirectory=_build -O--buildsystem=golang dh_strip -a -O--builddirectory=_build -O--buildsystem=golang -dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-x dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-goproxy +dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/testscript dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-addmod +dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-x dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/txtar-c -dh_strip: warning: Could not find the BuildID in debian/go-internal/usr/bin/testscript dh_makeshlibs -a -O--builddirectory=_build -O--buildsystem=golang dh_shlibdeps -a -O--builddirectory=_build -O--buildsystem=golang dh_installdeb -O--builddirectory=_build -O--buildsystem=golang @@ -5703,8 +5743,8 @@ dpkg-gencontrol: warning: package go-internal: substitution variable ${misc:Built-Using} unused, but is defined dh_md5sums -O--builddirectory=_build -O--buildsystem=golang dh_builddeb -O--builddirectory=_build -O--buildsystem=golang -dpkg-deb: building package 'go-internal' in '../go-internal_1.12.0-3_i386.deb'. dpkg-deb: building package 'golang-github-rogpeppe-go-internal-dev' in '../golang-github-rogpeppe-go-internal-dev_1.12.0-3_all.deb'. +dpkg-deb: building package 'go-internal' in '../go-internal_1.12.0-3_i386.deb'. dpkg-genbuildinfo --build=binary -O../golang-github-rogpeppe-go-internal_1.12.0-3_i386.buildinfo dpkg-genchanges --build=binary -O../golang-github-rogpeppe-go-internal_1.12.0-3_i386.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -5712,12 +5752,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/62565/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/62565/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/55420 and its subdirectories -I: Current time: Fri Jan 23 22:09:07 -12 2026 -I: pbuilder-time-stamp: 1769249347 +I: removing directory /srv/workspace/pbuilder/62565 and its subdirectories +I: Current time: Sun Dec 22 17:48:08 +14 2024 +I: pbuilder-time-stamp: 1734839288