Diff of the two buildlogs: -- --- b1/build.log 2025-03-16 00:45:34.883110655 +0000 +++ b2/build.log 2025-03-16 00:47:03.635107753 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Apr 17 19:04:58 -12 2026 -I: pbuilder-time-stamp: 1776495898 +I: Current time: Sun Mar 16 14:45:38 +14 2025 +I: pbuilder-time-stamp: 1742085938 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -24,52 +24,84 @@ dpkg-source: info: applying 246.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2513157/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/4110076/tmp/hooks/D01_modify_environment starting +debug: Running on codethink04-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Mar 16 00:45 /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/4110076/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/4110076/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='ee3c7cb3d0584f1aa9db2a1e192b6483' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='2513157' - PS1='# ' - PS2='> ' + INVOCATION_ID=b378ac2000ca4d5fa9aca79074436e9a + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=4110076 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.9h0PV1Bx/pbuilderrc_dgb3 --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.9h0PV1Bx/b1 --logfile b1/build.log golang-github-rogpeppe-go-internal_1.12.0-3.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.9h0PV1Bx/pbuilderrc_IlfR --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.9h0PV1Bx/b2 --logfile b2/build.log golang-github-rogpeppe-go-internal_1.12.0-3.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink03-arm64 6.1.0-32-cloud-arm64 #1 SMP Debian 6.1.129-1 (2025-03-06) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-32-cloud-arm64 #1 SMP Debian 6.1.129-1 (2025-03-06) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Mar 4 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2513157/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Mar 4 11:20 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/4110076/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -166,7 +198,7 @@ Get: 47 http://deb.debian.org/debian trixie/main arm64 golang-golang-x-net-dev all 1:0.27.0-1 [898 kB] Get: 48 http://deb.debian.org/debian trixie/main arm64 golang-golang-x-sync-dev all 0.7.0-1 [19.0 kB] Get: 49 http://deb.debian.org/debian trixie/main arm64 golang-golang-x-tools-dev all 1:0.25.0+ds-1 [1608 kB] -Fetched 78.3 MB in 1s (121 MB/s) +Fetched 78.3 MB in 0s (245 MB/s) Preconfiguring packages ... Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19917 files and directories currently installed.) @@ -384,7 +416,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/4110076/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/4110076/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 @@ -403,184 +439,184 @@ dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang dh_auto_build -O--builddirectory=_build -O--buildsystem=golang cd _build && go install -trimpath -v -p 12 github.com/rogpeppe/go-internal/cache github.com/rogpeppe/go-internal/cmd/testscript github.com/rogpeppe/go-internal/cmd/txtar-addmod github.com/rogpeppe/go-internal/cmd/txtar-c github.com/rogpeppe/go-internal/cmd/txtar-goproxy github.com/rogpeppe/go-internal/cmd/txtar-x github.com/rogpeppe/go-internal/diff github.com/rogpeppe/go-internal/dirhash github.com/rogpeppe/go-internal/fmtsort github.com/rogpeppe/go-internal/goproxytest github.com/rogpeppe/go-internal/gotooltest github.com/rogpeppe/go-internal/imports github.com/rogpeppe/go-internal/internal/misspell github.com/rogpeppe/go-internal/internal/os/execpath github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll github.com/rogpeppe/go-internal/lockedfile github.com/rogpeppe/go-internal/lockedfile/internal/filelock github.com/rogpeppe/go-internal/modfile github.com/rogpeppe/go-internal/module github.com/rogpeppe/go-internal/par github.com/rogpeppe/go-internal/renameio github.com/rogpeppe/go-internal/robustio github.com/rogpeppe/go-internal/semver github.com/rogpeppe/go-internal/testenv github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/testscript/internal/pty github.com/rogpeppe/go-internal/txtar -internal/byteorder -internal/goarch -internal/coverage/rtcov -internal/goexperiment -internal/godebugs internal/goos -internal/unsafeheader +internal/profilerecord +internal/byteorder internal/asan +internal/godebugs internal/msan +internal/unsafeheader +internal/coverage/rtcov +internal/goarch +internal/goexperiment +internal/runtime/syscall internal/cpu -internal/runtime/math -internal/abi -internal/profilerecord -internal/chacha8rand -math/bits sync/atomic -internal/runtime/syscall -unicode +math/bits unicode/utf8 +unicode +internal/runtime/math +internal/abi crypto/internal/fips140/alias -crypto/internal/fips140deps/byteorder internal/itoa cmp crypto/internal/fips140/subtle +internal/chacha8rand +crypto/internal/fips140deps/byteorder crypto/internal/boring/sig -math log/internal encoding unicode/utf16 internal/nettrace +math container/list +vendor/golang.org/x/crypto/cryptobyte/asn1 internal/bytealg internal/runtime/atomic internal/runtime/sys crypto/internal/fips140deps/cpu -vendor/golang.org/x/crypto/cryptobyte/asn1 vendor/golang.org/x/crypto/internal/alias github.com/rogpeppe/go-internal/internal/misspell internal/goversion +internal/platform internal/syslist github.com/rogpeppe/go-internal/internal/syscall/windows github.com/rogpeppe/go-internal/internal/syscall/windows/sysdll -internal/platform -internal/runtime/exithook internal/stringslite +internal/runtime/exithook internal/race -internal/runtime/maps internal/sync +internal/runtime/maps runtime internal/reflectlite -sync iter crypto/subtle weak -slices +sync maps -internal/bisect -internal/testlog -internal/singleflight -unique +slices errors sort -runtime/cgo -io -strconv -internal/oserror +vendor/golang.org/x/net/dns/dnsmessage path +internal/oserror +strconv math/rand/v2 -vendor/golang.org/x/net/dns/dnsmessage -internal/godebug +io +internal/testlog syscall +internal/singleflight +internal/bisect +unique +runtime/cgo +golang.org/x/mod/semver +internal/godebug +bytes hash strings crypto/internal/randutil -bytes +hash/crc32 crypto +github.com/rogpeppe/go-internal/semver +crypto/internal/impl crypto/internal/fips140deps/godebug -hash/crc32 -reflect vendor/golang.org/x/text/transform net/netip math/rand -golang.org/x/mod/semver -crypto/internal/fips140 -crypto/internal/impl +reflect bufio regexp/syntax net/http/internal/ascii go/build/constraint -github.com/rogpeppe/go-internal/semver +crypto/internal/fips140 crypto/internal/fips140/sha256 crypto/internal/fips140/sha3 crypto/internal/fips140/sha512 crypto/tls/internal/fips140tls github.com/rogpeppe/go-internal/par -crypto/sha3 +internal/syscall/unix +time +internal/syscall/execenv crypto/internal/fips140/hmac -crypto/internal/fips140hash +crypto/sha3 crypto/internal/fips140/check -crypto/internal/fips140/nistec/fiat +crypto/internal/fips140hash crypto/internal/fips140/aes +crypto/internal/fips140/nistec/fiat crypto/internal/fips140/edwards25519/field -crypto/internal/fips140/hkdf crypto/internal/fips140/bigmod -internal/syscall/unix +crypto/internal/fips140/hkdf crypto/internal/fips140/tls12 -time -internal/syscall/execenv -crypto/internal/fips140/tls13 regexp +crypto/internal/fips140/tls13 crypto/internal/fips140/edwards25519 -crypto/internal/fips140/nistec io/fs -internal/poll context +internal/poll internal/filepathlite +crypto/internal/fips140/nistec os internal/fmtsort encoding/binary github.com/rogpeppe/go-internal/fmtsort +encoding/base64 +vendor/golang.org/x/crypto/internal/poly1305 crypto/internal/sysrand -fmt github.com/rogpeppe/go-internal/lockedfile/internal/filelock +io/ioutil path/filepath +internal/lazyregexp golang.org/x/mod/internal/lazyregexp -io/ioutil +fmt internal/sysinfo -internal/lazyregexp github.com/rogpeppe/go-internal/robustio -encoding/base64 -vendor/golang.org/x/crypto/internal/poly1305 +encoding/pem crypto/internal/entropy crypto/internal/fips140/drbg -os/exec -encoding/pem +net github.com/rogpeppe/go-internal/renameio +os/exec crypto/internal/fips140/aes/gcm -crypto/internal/fips140only crypto/internal/fips140/ecdh -crypto/internal/fips140/ecdsa +crypto/internal/fips140only crypto/internal/fips140/ed25519 +crypto/internal/fips140/ecdsa crypto/internal/fips140/mlkem crypto/internal/fips140/rsa -crypto/md5 crypto/rc4 +crypto/md5 github.com/rogpeppe/go-internal/internal/os/execpath internal/goroot crypto/cipher -net encoding/hex -github.com/rogpeppe/go-internal/lockedfile log +github.com/rogpeppe/go-internal/lockedfile flag compress/flate encoding/json +golang.org/x/mod/module golang.org/x/tools/txtar -math/big net/url -golang.org/x/mod/module +math/big vendor/golang.org/x/text/unicode/norm crypto/internal/boring crypto/des +vendor/golang.org/x/crypto/chacha20 crypto/sha256 crypto/aes crypto/ecdh crypto/sha512 -github.com/rogpeppe/go-internal/cache crypto/hmac -vendor/golang.org/x/crypto/chacha20 +github.com/rogpeppe/go-internal/cache crypto/sha1 vendor/golang.org/x/text/unicode/bidi vendor/golang.org/x/net/http2/hpack mime +vendor/golang.org/x/crypto/chacha20poly1305 mime/quotedprintable +net/http/internal archive/zip compress/gzip -vendor/golang.org/x/crypto/chacha20poly1305 -net/http/internal github.com/rogpeppe/go-internal/diff github.com/rogpeppe/go-internal/imports runtime/debug @@ -588,28 +624,28 @@ github.com/rogpeppe/go-internal/testscript/internal/pty github.com/rogpeppe/go-internal/txtar go/token +vendor/golang.org/x/text/secure/bidirule go/doc/comment internal/buildcfg github.com/rogpeppe/go-internal/cmd/txtar-addmod -vendor/golang.org/x/text/secure/bidirule -testing github.com/rogpeppe/go-internal/cmd/txtar-c -go/scanner +testing github.com/rogpeppe/go-internal/cmd/txtar-x +go/scanner golang.org/x/mod/modfile -github.com/rogpeppe/go-internal/module -go/ast vendor/golang.org/x/net/idna +go/ast +github.com/rogpeppe/go-internal/module +github.com/rogpeppe/go-internal/dirhash crypto/rand crypto/elliptic crypto/internal/boring/bbig encoding/asn1 +crypto/dsa +github.com/rogpeppe/go-internal/modfile crypto/ed25519 crypto/internal/hpke crypto/rsa -crypto/dsa -github.com/rogpeppe/go-internal/dirhash -github.com/rogpeppe/go-internal/modfile vendor/golang.org/x/crypto/cryptobyte crypto/x509/pkix go/doc @@ -619,9 +655,9 @@ go/build github.com/rogpeppe/go-internal/testscript github.com/rogpeppe/go-internal/gotooltest -crypto/x509 -net/textproto vendor/golang.org/x/net/http/httpproxy +net/textproto +crypto/x509 vendor/golang.org/x/net/http/httpguts mime/multipart crypto/tls @@ -640,7 +676,7 @@ === RUN TestBasic --- PASS: TestBasic (0.00s) === RUN TestGrowth ---- PASS: TestGrowth (0.79s) +--- PASS: TestGrowth (0.55s) === RUN TestVerifyPanic cache_test.go:138: go: internal cache error: cache verify failed: id=0100000000000000000000000000000000000000000000000000000000000000 changed:<<< @@ -655,7 +691,7 @@ === RUN TestHashFile --- PASS: TestHashFile (0.00s) PASS -ok github.com/rogpeppe/go-internal/cache 0.877s +ok github.com/rogpeppe/go-internal/cache 0.593s === RUN TestScripts === RUN TestScripts/continue === PAUSE TestScripts/continue @@ -681,21 +717,21 @@ === PAUSE TestScripts/update === RUN TestScripts/work === PAUSE TestScripts/work +=== CONT TestScripts/update === CONT TestScripts/continue +=== CONT TestScripts/skip +=== CONT TestScripts/simple +=== CONT TestScripts/noproxy === CONT TestScripts/nogo +=== CONT TestScripts/help +=== CONT TestScripts/error === CONT TestScripts/env_var_with_go -=== CONT TestScripts/skip === CONT TestScripts/env_var_no_go === CONT TestScripts/env_values -=== CONT TestScripts/help -=== CONT TestScripts/error === CONT TestScripts/work -=== CONT TestScripts/update -=== CONT TestScripts/simple -=== CONT TestScripts/noproxy === NAME TestScripts/nogo testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -718,12 +754,12 @@ # should support skip (0.000s) > unquote file.txt # We can't just set PATH to empty because we need the part of it that - # contains the command names, so use a special builtin instead. (0.051s) + # contains the command names, so use a special builtin instead. (0.011s) > dropgofrompath > ! testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -734,9 +770,9 @@ exe= > go env - FAIL: $WORK/.tmp/testscript3215865228/file.txt/script.txtar:1: unknown command "go" + FAIL: $WORK/.tmp/testscript2325677378/file.txt/script.txtar:1: unknown command "go" [stderr] - error running file.txt in $WORK/.tmp/testscript3215865228/file.txt + error running file.txt in $WORK/.tmp/testscript2325677378/file.txt [exit status 1] > stdout 'unknown command "go"' @@ -745,7 +781,7 @@ === NAME TestScripts/help testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -765,7 +801,7 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # Simply sanity check on help output (0.064s) + # Simply sanity check on help output (0.038s) > ! testscript -help [stderr] The testscript command runs github.com/rogpeppe/go-internal/testscript scripts @@ -895,207 +931,9 @@ > stderr 'Examples' PASS -=== NAME TestScripts/skip - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - GOPATH=$WORK/.gopath - CCACHE_DISABLE=1 - GOARCH=arm64 - GOOS=linux - GOROOT=/usr/lib/go-1.24 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.24 - GOINTERNALMODPATH=. - GONOSUMDB=* - - # should support skip (0.365s) - > unquote file.txt - > testscript -v file.txt - [stdout] - WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - GOPATH=$WORK/.gopath - CCACHE_DISABLE=1 - GOARCH=arm64 - GOOS=linux - GOROOT=/usr/lib/go-1.24 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.24 - - > go version - [stdout] - go version go1.24.1 linux/arm64 - - > skip - > stdout 'go version' - > ! stderr .+ - PASS - -=== NAME TestScripts/noproxy - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - GOPATH=$WORK/.gopath - CCACHE_DISABLE=1 - GOARCH=arm64 - GOOS=linux - GOROOT=/usr/lib/go-1.24 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.24 - GOINTERNALMODPATH=. - GONOSUMDB=* - - # 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.348s) - > env GOPROXY=0.1.2.3 - > unquote file.txt - > testscript -v file.txt - [stdout] - WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - GOPATH=$WORK/.gopath - CCACHE_DISABLE=1 - GOARCH=arm64 - GOOS=linux - GOROOT=/usr/lib/go-1.24 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=0.1.2.3 - goversion=1.24 - - > go env - [stdout] - AR='ar' - CC='gcc' - CGO_CFLAGS='-O2 -g' - CGO_CPPFLAGS='' - CGO_CXXFLAGS='-O2 -g' - CGO_ENABLED='1' - CGO_FFLAGS='-O2 -g' - CGO_LDFLAGS='-O2 -g' - CXX='g++' - GCCGO='gccgo' - GO111MODULE='' - GOARCH='arm64' - GOARM64='v8.0' - GOAUTH='netrc' - GOBIN='' - GOCACHE='/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build' - GOCACHEPROG='' - GODEBUG='' - GOENV='/no-home/.config/go/env' - GOEXE='' - GOEXPERIMENT='' - GOFIPS140='off' - GOFLAGS='' - GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build125733704=/tmp/go-build -gno-record-gcc-switches' - GOHOSTARCH='arm64' - GOHOSTOS='linux' - GOINSECURE='' - GOMOD='/dev/null' - GOMODCACHE='$WORK/.gopath/pkg/mod' - GONOPROXY='' - GONOSUMDB='' - GOOS='linux' - GOPATH='$WORK/.gopath' - GOPRIVATE='' - GOPROXY='0.1.2.3' - GOROOT='/usr/lib/go-1.24' - GOSUMDB='sum.golang.org' - GOTELEMETRY='local' - GOTELEMETRYDIR='/no-home/.config/go/telemetry' - GOTMPDIR='' - GOTOOLCHAIN='auto' - GOTOOLDIR='/usr/lib/go-1.24/pkg/tool/linux_arm64' - GOVCS='' - GOVERSION='go1.24.1' - GOWORK='' - PKG_CONFIG='pkg-config' - - > [!windows] stdout '^GOPROXY=[''"]0.1.2.3[''"]$' - > [windows] stdout '^set GOPROXY=0.1.2.3$' - PASS - PASS - -=== NAME TestScripts/update - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - GOPATH=$WORK/.gopath - CCACHE_DISABLE=1 - GOARCH=arm64 - GOOS=linux - GOROOT=/usr/lib/go-1.24 - GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=https://proxy.golang.org,direct - goversion=1.24 - GOINTERNALMODPATH=. - GONOSUMDB=* - - # should support the -update flag (0.000s) - > unquote in.txt res.txt - # Should be an error to use -u with only stdin (0.064s) - > 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.312s) - > testscript -u - in.txt - [stdout] - PASS - PASS - $WORK/.tmp/testscript2258211931/in.txt/script.txtar updated - > cmp in.txt res.txt - PASS - === NAME TestScripts/env_var_no_go testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1124,11 +962,11 @@ > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= - # no GOPROXY, no pass-through, no proxy (0.083s) + # no GOPROXY, no pass-through, no proxy (0.011s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1149,11 +987,11 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.061s) + # no GOPROXY, no pass-through, with proxy (0.012s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1162,7 +1000,7 @@ :=: $=$ exe= - GOPROXY=http://127.0.0.1:40443/mod + GOPROXY=http://127.0.0.1:43705/mod GONOSUMDB=* > env BANANA @@ -1170,17 +1008,17 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:40443/mod + GOPROXY=http://127.0.0.1:43705/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.049s) + # no GOPROXY, with pass-through, no proxy (0.008s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1204,11 +1042,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.043s) + # no GOPROXY, with pass-through, with proxy (0.009s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1234,11 +1072,11 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.044s) + # with GOPROXY, no pass-through, no proxy (0.017s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1259,11 +1097,11 @@ > stdout ^GOPATH=$ > stdout ^GOPROXY=$ > ! stderr .+ - # with GOPROXY, no pass-through, with proxy (0.056s) + # with GOPROXY, no pass-through, with proxy (0.011s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1272,7 +1110,7 @@ :=: $=$ exe= - GOPROXY=http://127.0.0.1:36417/mod + GOPROXY=http://127.0.0.1:45485/mod GONOSUMDB=* > env BANANA @@ -1280,17 +1118,17 @@ > env GOPATH GOPATH= > env GOPROXY - GOPROXY=http://127.0.0.1:36417/mod + GOPROXY=http://127.0.0.1:45485/mod PASS > stdout ^BANANA=$ > stdout ^GOPATH=$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.024s) + # with GOPROXY, with pass-through, no proxy (0.022s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1314,11 +1152,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.017s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/sbin:/sbin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/sbin:/sbin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1345,9 +1183,53 @@ > ! stderr .+ PASS +=== NAME TestScripts/continue + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + GOPATH=$WORK/.gopath + CCACHE_DISABLE=1 + GOARCH=arm64 + GOOS=linux + GOROOT=/usr/lib/go-1.24 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.24 + GOINTERNALMODPATH=. + GONOSUMDB=* + + # should support -continue (0.000s) + > unquote file.txt + # Running with continue, the testscript command itself + # should fail, but we should see the results of executing + # both commands. (0.159s) + > ! testscript -continue file.txt + [stdout] + > grep banana in + [in] + apple + + FAIL: $WORK/.tmp/testscript1751735356/file.txt/script.txtar:1: no match for `banana` found in in + > grep apple in + [stderr] + error running file.txt in $WORK/.tmp/testscript1751735356/file.txt + + [exit status 1] + > stdout 'grep banana in' + > stdout 'no match for `banana` found in in' + > stdout 'grep apple in' + PASS + === NAME TestScripts/work testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1373,12 +1255,12 @@ # # This test also covers the use of multiple scripts which share # the same basename, ensuring that the naming of the directories - # within the working directory. (0.404s) + # within the working directory. (0.145s) > unquote file.txt dir/file.txt > testscript -v -work file.txt dir/file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1399,7 +1281,7 @@ > exec true PASS WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1420,9 +1302,9 @@ > exec true PASS [stderr] - temporary work directory: $WORK/.tmp/testscript2477667381 - temporary work directory for file.txt: $WORK/.tmp/go-test-script4274894657/script-script - temporary work directory for dir/file.txt: $WORK/.tmp/go-test-script3527397444/script-script + temporary work directory: $WORK/.tmp/testscript3063435313 + temporary work directory for file.txt: $WORK/.tmp/go-test-script2199859217/script-script + temporary work directory for dir/file.txt: $WORK/.tmp/go-test-script2532567460/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[/\\]' @@ -1430,9 +1312,9 @@ > expandone $WORK/.tmp/testscript*/file.txt1/script.txtar PASS -=== NAME TestScripts/continue +=== NAME TestScripts/update testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1452,31 +1334,185 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # should support -continue (0.000s) + # should support the -update flag (0.000s) + > unquote in.txt res.txt + # Should be an error to use -u with only stdin (0.006s) + > 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.157s) + > testscript -u - in.txt + [stdout] + PASS + PASS + $WORK/.tmp/testscript1858444603/in.txt/script.txtar updated + > cmp in.txt res.txt + PASS + +=== NAME TestScripts/skip + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + GOPATH=$WORK/.gopath + CCACHE_DISABLE=1 + GOARCH=arm64 + GOOS=linux + GOROOT=/usr/lib/go-1.24 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.24 + GOINTERNALMODPATH=. + GONOSUMDB=* + + # should support skip (0.172s) > unquote file.txt - # Running with continue, the testscript command itself - # should fail, but we should see the results of executing - # both commands. (0.443s) - > ! testscript -continue file.txt + > testscript -v file.txt [stdout] - > grep banana in - [in] - apple + WORK=$WORK + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + GOPATH=$WORK/.gopath + CCACHE_DISABLE=1 + GOARCH=arm64 + GOOS=linux + GOROOT=/usr/lib/go-1.24 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.24 - FAIL: $WORK/.tmp/testscript3928071503/file.txt/script.txtar:1: no match for `banana` found in in - > grep apple in - [stderr] - error running file.txt in $WORK/.tmp/testscript3928071503/file.txt + > go version + [stdout] + go version go1.24.1 linux/arm64 - [exit status 1] - > stdout 'grep banana in' - > stdout 'no match for `banana` found in in' - > stdout 'grep apple in' + > skip + > stdout 'go version' + > ! stderr .+ + PASS + +=== NAME TestScripts/noproxy + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + GOPATH=$WORK/.gopath + CCACHE_DISABLE=1 + GOARCH=arm64 + GOOS=linux + GOROOT=/usr/lib/go-1.24 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=https://proxy.golang.org,direct + goversion=1.24 + GOINTERNALMODPATH=. + GONOSUMDB=* + + # 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.187s) + > env GOPROXY=0.1.2.3 + > unquote file.txt + > testscript -v file.txt + [stdout] + WORK=$WORK + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + GOPATH=$WORK/.gopath + CCACHE_DISABLE=1 + GOARCH=arm64 + GOOS=linux + GOROOT=/usr/lib/go-1.24 + GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build + GOPROXY=0.1.2.3 + goversion=1.24 + + > go env + [stdout] + AR='ar' + CC='gcc' + CGO_CFLAGS='-O2 -g' + CGO_CPPFLAGS='' + CGO_CXXFLAGS='-O2 -g' + CGO_ENABLED='1' + CGO_FFLAGS='-O2 -g' + CGO_LDFLAGS='-O2 -g' + CXX='g++' + GCCGO='gccgo' + GO111MODULE='' + GOARCH='arm64' + GOARM64='v8.0' + GOAUTH='netrc' + GOBIN='' + GOCACHE='/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build' + GOCACHEPROG='' + GODEBUG='' + GOENV='/no-home/.config/go/env' + GOEXE='' + GOEXPERIMENT='' + GOFIPS140='off' + GOFLAGS='' + GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build3534402643=/tmp/go-build -gno-record-gcc-switches' + GOHOSTARCH='arm64' + GOHOSTOS='linux' + GOINSECURE='' + GOMOD='/dev/null' + GOMODCACHE='$WORK/.gopath/pkg/mod' + GONOPROXY='' + GONOSUMDB='' + GOOS='linux' + GOPATH='$WORK/.gopath' + GOPRIVATE='' + GOPROXY='0.1.2.3' + GOROOT='/usr/lib/go-1.24' + GOSUMDB='sum.golang.org' + GOTELEMETRY='local' + GOTELEMETRYDIR='/no-home/.config/go/telemetry' + GOTMPDIR='' + GOTOOLCHAIN='auto' + GOTOOLDIR='/usr/lib/go-1.24/pkg/tool/linux_arm64' + GOVCS='' + GOVERSION='go1.24.1' + GOWORK='' + PKG_CONFIG='pkg-config' + + > [!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-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1497,13 +1533,13 @@ GONOSUMDB=* # With .gomodproxy supporting files, any GOPROXY from the - # environment should be overridden by the test proxy. (0.536s) + # environment should be overridden by the test proxy. (0.189s) > env GOPROXY=0.1.2.3 > unquote file.txt > testscript -v file.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1518,7 +1554,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:40683/mod + GOPROXY=http://127.0.0.1:40073/mod goversion=1.24 GONOSUMDB=* @@ -1544,9 +1580,9 @@ > ! stderr .+ PASS -=== NAME TestScripts/error +=== NAME TestScripts/env_values testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1566,14 +1602,30 @@ GOINTERNALMODPATH=. GONOSUMDB=* - # should support skip (0.000s) - > unquote file.txt - # stdin (0.316s) - > stdin file.txt - > ! testscript -v + # Test that passing env values, e.g. ENV1=val, works (0.000s) + > unquote test.txt + > env BLAH1= + > env BLAH2=junk + # Normal operation (0.147s) + > testscript -e BLAH1=rubbish -e BLAH2 test.txt [stdout] - WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PASS + # It is an error to specify WORK. Note the error message + # appears on stdout because it is written to the log output + # of testscript, which has no concept of stderr. (0.058s) + > ! testscript -e BLAH1=rubbish -e BLAH2 -e WORK test.txt + [stdout] + FAIL: $WORK/.tmp/testscript4066608808/test.txt/script.txtar:0: cannot override WORK variable + [stderr] + error running test.txt in $WORK/.tmp/testscript4066608808/test.txt + + [exit status 1] + > stdout 'cannot override WORK variable' + PASS + +=== NAME TestScripts/error + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1590,20 +1642,17 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.24 + GOINTERNALMODPATH=. + GONOSUMDB=* - > exec false - [exit status 1] - FAIL: $WORK/.tmp/testscript2231831022/-/script.txtar:1: unexpected command failure - [stderr] - error running in $WORK/.tmp/testscript2231831022/- - - [exit status 1] - > stderr 'error running in' - # file-based (0.251s) - > ! testscript -v file.txt + # should support skip (0.000s) + > unquote file.txt + # stdin (0.162s) + > stdin file.txt + > ! testscript -v [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1623,17 +1672,17 @@ > exec false [exit status 1] - FAIL: $WORK/.tmp/testscript565165728/file.txt/script.txtar:1: unexpected command failure + FAIL: $WORK/.tmp/testscript1544471469/-/script.txtar:1: unexpected command failure [stderr] - error running file.txt in $WORK/.tmp/testscript565165728/file.txt + error running in $WORK/.tmp/testscript1544471469/- [exit status 1] - > stderr 'error running file.txt in' - PASS - -=== NAME TestScripts/env_values - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + > stderr 'error running in' + # file-based (0.066s) + > ! testscript -v file.txt + [stdout] + WORK=$WORK + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1650,33 +1699,20 @@ GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build GOPROXY=https://proxy.golang.org,direct goversion=1.24 - GOINTERNALMODPATH=. - GONOSUMDB=* - # Test that passing env values, e.g. ENV1=val, works (0.000s) - > unquote test.txt - > env BLAH1= - > env BLAH2=junk - # Normal operation (0.450s) - > 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.341s) - > ! testscript -e BLAH1=rubbish -e BLAH2 -e WORK test.txt - [stdout] - FAIL: $WORK/.tmp/testscript3096002102/test.txt/script.txtar:0: cannot override WORK variable + > exec false + [exit status 1] + FAIL: $WORK/.tmp/testscript2142512904/file.txt/script.txtar:1: unexpected command failure [stderr] - error running test.txt in $WORK/.tmp/testscript3096002102/test.txt + error running file.txt in $WORK/.tmp/testscript2142512904/file.txt [exit status 1] - > stdout 'cannot override WORK variable' + > stderr 'error running file.txt in' PASS === NAME TestScripts/env_var_with_go testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1705,11 +1741,11 @@ # This is the counterpart to env_var_no_go.txt (0.000s) > unquote noproxy.txt > unquote withproxy.txt - # Baseline (0.439s) + # Baseline (0.158s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1741,11 +1777,11 @@ > env BANANA=banana > env GOPATH=$WORK/ourgopath > env GOPROXY= - # no GOPROXY, no pass-through, no proxy (0.253s) + # no GOPROXY, no pass-through, no proxy (0.068s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1774,11 +1810,11 @@ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=https://proxy.golang.org,direct$ > ! stderr .+ - # no GOPROXY, no pass-through, with proxy (0.210s) + # no GOPROXY, no pass-through, with proxy (0.048s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1793,7 +1829,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:35477/mod + GOPROXY=http://127.0.0.1:38451/mod goversion=1.24 GONOSUMDB=* @@ -1802,17 +1838,17 @@ > env GOPATH GOPATH=$WORK/.gopath > env GOPROXY - GOPROXY=http://127.0.0.1:35477/mod + GOPROXY=http://127.0.0.1:38451/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # no GOPROXY, with pass-through, no proxy (0.280s) + # no GOPROXY, with pass-through, no proxy (0.062s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1842,11 +1878,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$ > ! stderr .+ - # no GOPROXY, with pass-through, with proxy (0.236s) + # 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-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1878,11 +1914,11 @@ > stdout ^GOPROXY=$ > ! stderr .+ > setfilegoproxy $WORK/proxy - # with GOPROXY, no pass-through, no proxy (0.252s) + # with GOPROXY, no pass-through, no proxy (0.057s) > testscript -v noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1911,11 +1947,11 @@ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, no pass-through, with proxy (0.296s) + # with GOPROXY, no pass-through, with proxy (0.059s) > testscript -v withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1930,7 +1966,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:38245/mod + GOPROXY=http://127.0.0.1:37193/mod goversion=1.24 GONOSUMDB=* @@ -1939,17 +1975,17 @@ > env GOPATH GOPATH=$WORK/.gopath > env GOPROXY - GOPROXY=http://127.0.0.1:38245/mod + GOPROXY=http://127.0.0.1:37193/mod PASS > stdout ^BANANA=$ > stdout '^GOPATH=\$WORK[/\\]\.gopath'$ > stdout ^GOPROXY=http://.*/mod$ > ! stderr .+ - # with GOPROXY, with pass-through, no proxy (0.265s) + # with GOPROXY, with pass-through, no proxy (0.057s) > testscript -v -e BANANA -e GOPATH -e GOPROXY noproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -1979,11 +2015,11 @@ > stdout ^GOPATH=${WORK@R}[/\\]ourgopath$ > stdout ^GOPROXY=$GOPROXY$ > ! stderr .+ - # with GOPROXY, with pass-through, with proxy (0.275s) + # with GOPROXY, with pass-through, with proxy (0.059s) > testscript -v -e BANANA -e GOPATH -e GOPROXY withproxy.txt [stdout] WORK=$WORK - PATH=/tmp/testscript-main183126967/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2466069909/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2016,21 +2052,21 @@ > ! stderr .+ PASS ---- PASS: TestScripts (0.16s) - --- PASS: TestScripts/nogo (0.05s) - --- PASS: TestScripts/help (0.06s) - --- PASS: TestScripts/skip (0.37s) - --- PASS: TestScripts/noproxy (0.35s) - --- PASS: TestScripts/update (0.38s) - --- PASS: TestScripts/env_var_no_go (0.40s) - --- PASS: TestScripts/work (0.40s) - --- PASS: TestScripts/continue (0.44s) - --- PASS: TestScripts/simple (0.54s) - --- PASS: TestScripts/error (0.57s) - --- PASS: TestScripts/env_values (0.79s) - --- PASS: TestScripts/env_var_with_go (2.51s) +--- PASS: TestScripts (0.04s) + --- PASS: TestScripts/nogo (0.01s) + --- PASS: TestScripts/help (0.04s) + --- PASS: TestScripts/env_var_no_go (0.11s) + --- PASS: TestScripts/continue (0.16s) + --- PASS: TestScripts/update (0.16s) + --- PASS: TestScripts/work (0.15s) + --- PASS: TestScripts/skip (0.17s) + --- PASS: TestScripts/noproxy (0.19s) + --- PASS: TestScripts/simple (0.19s) + --- PASS: TestScripts/env_values (0.21s) + --- PASS: TestScripts/error (0.23s) + --- PASS: TestScripts/env_var_with_go (0.63s) PASS -ok github.com/rogpeppe/go-internal/cmd/testscript 2.710s +ok github.com/rogpeppe/go-internal/cmd/testscript 0.696s === RUN TestScripts === RUN TestScripts/encode === PAUSE TestScripts/encode @@ -2041,11 +2077,11 @@ === CONT TestScripts/encode === CONT TestScripts/txtar-addmod-self === CONT TestScripts/to_stdout -go proxy: no archive github.com/shurcooL v0.0.0-20171119174359-809beceb2371 go proxy: no archive github.com v0.0.0-20171119174359-809beceb2371 +go proxy: no archive github.com/shurcooL v0.0.0-20171119174359-809beceb2371 === NAME TestScripts/encode testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3228990765/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2007047039/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2060,7 +2096,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:39681/mod + GOPROXY=http://127.0.0.1:40723/mod goversion=1.24 GONOSUMDB=* @@ -2073,7 +2109,7 @@ === NAME TestScripts/to_stdout testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3228990765/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2007047039/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2088,7 +2124,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:39681/mod + GOPROXY=http://127.0.0.1:40723/mod goversion=1.24 GONOSUMDB=* @@ -2115,7 +2151,7 @@ === NAME TestScripts/txtar-addmod-self testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3228990765/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2007047039/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2130,7 +2166,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:39681/mod + GOPROXY=http://127.0.0.1:40723/mod goversion=1.24 GONOSUMDB=* @@ -2144,12 +2180,12 @@ > grep '-- foobar --' $WORK/out/github.com_gobin-testrepos_simple-main_v1.0.0.txtar PASS ---- PASS: TestScripts (0.16s) - --- PASS: TestScripts/encode (0.16s) - --- PASS: TestScripts/to_stdout (0.26s) - --- PASS: TestScripts/txtar-addmod-self (0.56s) +--- PASS: TestScripts (0.05s) + --- PASS: TestScripts/encode (0.04s) + --- PASS: TestScripts/to_stdout (0.08s) + --- PASS: TestScripts/txtar-addmod-self (0.13s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 0.787s +ok github.com/rogpeppe/go-internal/cmd/txtar-addmod 0.204s === RUN TestScripts === RUN TestScripts/all === PAUSE TestScripts/all @@ -2160,12 +2196,12 @@ === RUN TestScripts/txtar-savedir-self === PAUSE TestScripts/txtar-savedir-self === CONT TestScripts/all -=== CONT TestScripts/txtar-savedir-self === CONT TestScripts/quote +=== CONT TestScripts/txtar-savedir-self === CONT TestScripts/needquote -=== NAME TestScripts/txtar-savedir-self +=== NAME TestScripts/quote testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3805521805/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1792006007/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2175,29 +2211,21 @@ $=$ exe= + > unquote blah/withsep > unquote expect - > txtar-c blah + > txtar-c -quote blah [stdout] - -- go.mod -- - module example.com/blah - - -- main.go -- - package main - - import "fmt" - - func main() { - fmt.Println("Hello, world!") - } - -- subdir/x -- - x contents + unquote withsep + -- withsep -- + >-- separator -- + >foo > ! stderr .+ > cmp stdout expect PASS -=== NAME TestScripts/quote +=== NAME TestScripts/needquote testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3805521805/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1792006007/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2209,19 +2237,51 @@ > unquote blah/withsep > unquote expect - > txtar-c -quote blah + > txtar-c blah [stdout] - unquote withsep - -- withsep -- - >-- separator -- - >foo + -- 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-main1792006007/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + + > unquote expect + > txtar-c blah + [stdout] + -- go.mod -- + module example.com/blah + + -- main.go -- + package main + + import "fmt" + + func main() { + fmt.Println("Hello, world!") + } + -- subdir/x -- + x contents > ! stderr .+ > cmp stdout expect PASS === NAME TestScripts/all testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3805521805/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main1792006007/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2233,7 +2293,7 @@ > unquote expect-all > unquote expect-no-all - # Without the -a flag, it should ignore . files. (0.070s) + # Without the -a flag, it should ignore . files. (0.005s) > txtar-c blah [stdout] -- go.mod -- @@ -2249,7 +2309,7 @@ } > ! stderr .+ > cmp stdout expect-no-all - # With the -a flag, it should include them. (0.036s) + # With the -a flag, it should include them. (0.003s) > txtar-c -a blah [stdout] -- .foo/foo -- @@ -2271,37 +2331,13 @@ > cmp stdout expect-all PASS -=== NAME TestScripts/needquote - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main3805521805/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - - > unquote 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 - --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/txtar-savedir-self (0.04s) - --- PASS: TestScripts/quote (0.05s) - --- PASS: TestScripts/all (0.11s) - --- PASS: TestScripts/needquote (0.08s) + --- PASS: TestScripts/quote (0.00s) + --- PASS: TestScripts/needquote (0.00s) + --- PASS: TestScripts/txtar-savedir-self (0.01s) + --- PASS: TestScripts/all (0.01s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.144s +ok github.com/rogpeppe/go-internal/cmd/txtar-c 0.017s ? github.com/rogpeppe/go-internal/cmd/txtar-goproxy [no test files] === RUN TestScripts === RUN TestScripts/extract-dir @@ -2313,12 +2349,12 @@ === RUN TestScripts/extract === PAUSE TestScripts/extract === CONT TestScripts/extract-dir +=== CONT TestScripts/extract-stdin === CONT TestScripts/extract === CONT TestScripts/extract-out-of-bounds -=== CONT TestScripts/extract-stdin === NAME TestScripts/extract testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main664567719/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2451358907/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2334,27 +2370,9 @@ > cmp a/b/bar expect/a/b/bar PASS -=== NAME TestScripts/extract-dir - testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main664567719/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - - > unquote file.txtar - > txtar-x -C x/y file.txtar - > cmp x/y/foo expect/foo - > cmp x/y/a/b/bar expect/a/b/bar - PASS - === NAME TestScripts/extract-stdin testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main664567719/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2451358907/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2373,7 +2391,7 @@ === NAME TestScripts/extract-out-of-bounds testscript.go:558: WORK=$WORK - PATH=/tmp/testscript-main664567719/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main2451358907/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2396,13 +2414,31 @@ > stderr '"/foo": outside parent directory' PASS +=== NAME TestScripts/extract-dir + testscript.go:558: WORK=$WORK + PATH=/tmp/testscript-main2451358907/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + + > unquote file.txtar + > txtar-x -C x/y file.txtar + > cmp x/y/foo expect/foo + > cmp x/y/a/b/bar expect/a/b/bar + PASS + --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/extract (0.04s) - --- PASS: TestScripts/extract-dir (0.05s) - --- PASS: TestScripts/extract-stdin (0.06s) - --- PASS: TestScripts/extract-out-of-bounds (0.12s) + --- PASS: TestScripts/extract (0.00s) + --- PASS: TestScripts/extract-stdin (0.01s) + --- PASS: TestScripts/extract-out-of-bounds (0.01s) + --- PASS: TestScripts/extract-dir (0.01s) PASS -ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.150s +ok github.com/rogpeppe/go-internal/cmd/txtar-x 0.017s === RUN Test === RUN Test/allnew.txt === RUN Test/allold.txt @@ -2430,7 +2466,7 @@ --- PASS: Test/start.txt (0.00s) --- PASS: Test/triv.txt (0.00s) PASS -ok github.com/rogpeppe/go-internal/diff 0.028s +ok github.com/rogpeppe/go-internal/diff 0.013s === RUN TestHash1 --- PASS: TestHash1 (0.00s) === RUN TestHashDir @@ -2440,7 +2476,7 @@ === RUN TestDirFiles --- PASS: TestDirFiles (0.00s) PASS -ok github.com/rogpeppe/go-internal/dirhash 0.031s +ok github.com/rogpeppe/go-internal/dirhash 0.013s === RUN TestCompare --- PASS: TestCompare (0.00s) === RUN TestOrder @@ -2448,13 +2484,13 @@ === RUN TestInterface --- PASS: TestInterface (0.00s) PASS -ok github.com/rogpeppe/go-internal/fmtsort 0.046s +ok github.com/rogpeppe/go-internal/fmtsort 0.009s === RUN TestScripts === RUN TestScripts/list === PAUSE TestScripts/list === CONT TestScripts/list testscript.go:558: WORK=$WORK - PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2469,7 +2505,7 @@ GOOS=linux GOROOT=/usr/lib/go-1.24 GOCACHE=/build/reproducible-path/golang-github-rogpeppe-go-internal-1.12.0/_build/go-build - GOPROXY=http://127.0.0.1:42083/mod + GOPROXY=http://127.0.0.1:40401/mod goversion=1.24 GONOSUMDB=* @@ -2494,19 +2530,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.064s) + # It's for that reason that we moved the default GOPATH to ${WORK}/.gopath. (0.004s) > go mod tidy [stderr] go: warning: "all" matched no packages PASS ---- PASS: TestScripts (0.25s) - --- PASS: TestScripts/list (0.24s) +--- PASS: TestScripts (0.07s) + --- PASS: TestScripts/list (0.05s) PASS -ok github.com/rogpeppe/go-internal/goproxytest 0.543s +ok github.com/rogpeppe/go-internal/goproxytest 0.134s === RUN TestInitGoEnv ---- PASS: TestInitGoEnv (0.15s) +--- PASS: TestInitGoEnv (0.06s) === RUN TestSimple === RUN TestSimple/cover === PAUSE TestSimple/cover @@ -2518,7 +2554,7 @@ === CONT TestSimple/version === CONT TestSimple/env testscript.go:558: WORK=$WORK - PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2538,7 +2574,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.091s) + # but GOCACHE is. (0.025s) > go env [stdout] AR='ar' @@ -2564,7 +2600,7 @@ GOEXPERIMENT='' GOFIPS140='off' GOFLAGS='' - GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build2901393981=/tmp/go-build -gno-record-gcc-switches' + GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=$WORK/.tmp/go-build2008884135=/tmp/go-build -gno-record-gcc-switches' GOHOSTARCH='arm64' GOHOSTOS='linux' GOINSECURE='' @@ -2595,7 +2631,7 @@ === NAME TestSimple/version testscript.go:558: WORK=$WORK - PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2626,7 +2662,7 @@ === NAME TestSimple/cover testscript.go:1163: testscript.go:558: WORK=$WORK - PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -2647,25 +2683,25 @@ > unquote scripts/exec.txt # The module uses testscript itself. - # Use the checked out module, based on where the test binary ran. (0.536s) + # Use the checked out module, based on where the test binary ran. (0.148s) > 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]:47595->[::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]:58083->[::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.18s) - --- PASS: TestSimple/env (0.09s) - --- PASS: TestSimple/version (0.15s) - --- SKIP: TestSimple/cover (0.54s) +--- PASS: TestSimple (0.07s) + --- PASS: TestSimple/env (0.03s) + --- PASS: TestSimple/version (0.07s) + --- SKIP: TestSimple/cover (0.15s) PASS -ok github.com/rogpeppe/go-internal/gotooltest 0.916s +ok github.com/rogpeppe/go-internal/gotooltest 0.297s === RUN TestReadImports --- PASS: TestReadImports (0.00s) === RUN TestReadComments @@ -2679,7 +2715,7 @@ === RUN TestScanStar --- PASS: TestScanStar (0.00s) PASS -ok github.com/rogpeppe/go-internal/imports 0.045s +ok github.com/rogpeppe/go-internal/imports 0.010s === RUN TestAlmostEqual === PAUSE TestAlmostEqual === CONT TestAlmostEqual @@ -2711,7 +2747,7 @@ --- PASS: FuzzAlmostEqual/b323cef1fc26e507 (0.00s) --- PASS: FuzzAlmostEqual/c6edde4256d6f5eb (0.00s) PASS -ok github.com/rogpeppe/go-internal/internal/misspell 0.043s +ok github.com/rogpeppe/go-internal/internal/misspell 0.019s ? 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] @@ -2722,29 +2758,31 @@ === RUN TestCanLockExistingFile === PAUSE TestCanLockExistingFile === RUN TestSpuriousEDEADLK ---- PASS: TestSpuriousEDEADLK (0.06s) +--- PASS: TestSpuriousEDEADLK (0.02s) === RUN TestTransform ---- PASS: TestTransform (1.20s) +--- PASS: TestTransform (0.38s) === CONT TestMutexExcludes +=== CONT TestCanLockExistingFile +=== CONT TestReadWaitsForLock +=== NAME TestMutexExcludes lockedfile_test.go:85: mu := MutexAt(_) lockedfile_test.go:91: unlock, _ := mu.Lock() lockedfile_test.go:94: mu2 := MutexAt(mu.Path) -=== CONT TestCanLockExistingFile -=== CONT TestReadWaitsForLock +=== NAME TestReadWaitsForLock lockedfile_test.go:134: WriteString("part 1\n") = - 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") = lockedfile_test.go:146: Read(_) = "part 1\npart 2\n" ---- PASS: TestReadWaitsForLock (0.02s) ---- PASS: TestCanLockExistingFile (0.02s) +--- PASS: TestReadWaitsForLock (0.01s) +--- PASS: TestCanLockExistingFile (0.01s) === NAME TestMutexExcludes lockedfile_test.go:102: unlock2, _ := mu2.Lock() lockedfile_test.go:103: unlock2() ---- PASS: TestMutexExcludes (0.02s) +--- PASS: TestMutexExcludes (0.01s) PASS -ok github.com/rogpeppe/go-internal/lockedfile 1.321s +ok github.com/rogpeppe/go-internal/lockedfile 0.422s === RUN TestLockExcludesLock === PAUSE TestLockExcludesLock === RUN TestLockExcludesRLock @@ -2752,52 +2790,57 @@ === RUN TestRLockExcludesOnlyLock === PAUSE TestRLockExcludesOnlyLock === RUN TestLockNotDroppedByExecCommand - filelock_test.go:188: fd 6 = /tmp/TestLockNotDroppedByExecCommand1690882357 + filelock_test.go:188: fd 6 = /tmp/TestLockNotDroppedByExecCommand1715268408 filelock_test.go:191: Lock(fd 6) = - filelock_test.go:193: fd 7 = os.Open("/tmp/TestLockNotDroppedByExecCommand1690882357") + filelock_test.go:193: fd 7 = os.Open("/tmp/TestLockNotDroppedByExecCommand1715268408") filelock_test.go:204: Lock(fd 7) is blocked (as expected) filelock_test.go:205: Unlock(fd 6) = asm_arm64.s:1223: Lock(fd 7) = filelock_test.go:207: Unlock(fd 7) = ---- PASS: TestLockNotDroppedByExecCommand (0.07s) +--- PASS: TestLockNotDroppedByExecCommand (0.02s) === CONT TestLockExcludesLock - filelock_test.go:121: fd 6 = /tmp/TestLockExcludesLock3758029551 - filelock_test.go:124: fd 7 = os.Open("/tmp/TestLockExcludesLock3758029551") - filelock_test.go:127: Lock(fd 6) = === CONT TestRLockExcludesOnlyLock - filelock_test.go:153: fd 8 = /tmp/TestRLockExcludesOnlyLock1581630648 - filelock_test.go:155: RLock(fd 8) = - filelock_test.go:157: fd 9 = os.Open("/tmp/TestRLockExcludesOnlyLock1581630648") - filelock_test.go:171: RLock(fd 9) = - filelock_test.go:175: fd 10 = os.Open("/tmp/TestRLockExcludesOnlyLock1581630648") + filelock_test.go:153: fd 7 = /tmp/TestRLockExcludesOnlyLock2479327818 + filelock_test.go:155: RLock(fd 7) = +=== NAME TestLockExcludesLock + filelock_test.go:121: fd 6 = /tmp/TestLockExcludesLock1586713602 + filelock_test.go:124: fd 9 = os.Open("/tmp/TestLockExcludesLock1586713602") + filelock_test.go:127: Lock(fd 6) = === CONT TestLockExcludesRLock - filelock_test.go:137: fd 11 = /tmp/TestLockExcludesRLock126980358 - filelock_test.go:140: fd 12 = os.Open("/tmp/TestLockExcludesRLock126980358") - filelock_test.go:143: Lock(fd 11) = + filelock_test.go:137: fd 10 = /tmp/TestLockExcludesRLock1463781806 === NAME TestRLockExcludesOnlyLock - filelock_test.go:177: Lock(fd 10) is blocked (as expected) - filelock_test.go:179: Unlock(fd 9) = - filelock_test.go:181: Unlock(fd 8) = + filelock_test.go:157: fd 8 = os.Open("/tmp/TestRLockExcludesOnlyLock2479327818") + filelock_test.go:171: RLock(fd 8) = + filelock_test.go:175: fd 12 = os.Open("/tmp/TestRLockExcludesOnlyLock2479327818") === NAME TestLockExcludesRLock - filelock_test.go:144: RLock(fd 12) is blocked (as expected) - filelock_test.go:145: Unlock(fd 11) = + filelock_test.go:140: fd 11 = os.Open("/tmp/TestLockExcludesRLock1463781806") + filelock_test.go:143: Lock(fd 10) = === NAME TestLockExcludesLock - filelock_test.go:128: Lock(fd 7) is blocked (as expected) + filelock_test.go:128: Lock(fd 9) 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 8) = + filelock_test.go:181: Unlock(fd 7) = === NAME TestLockExcludesRLock - asm_arm64.s:1223: RLock(fd 12) = - filelock_test.go:147: Unlock(fd 12) = ---- PASS: TestLockExcludesRLock (0.02s) + filelock_test.go:144: RLock(fd 11) is blocked (as expected) === NAME TestRLockExcludesOnlyLock - asm_arm64.s:1223: Lock(fd 10) = - filelock_test.go:184: Unlock(fd 10) = ---- PASS: TestRLockExcludesOnlyLock (0.02s) + asm_arm64.s:1223: Lock(fd 12) = +=== NAME TestLockExcludesRLock + filelock_test.go:145: Unlock(fd 10) = +=== NAME TestRLockExcludesOnlyLock + filelock_test.go:184: Unlock(fd 12) = +--- PASS: TestRLockExcludesOnlyLock (0.01s) +=== NAME TestLockExcludesRLock + asm_arm64.s:1223: RLock(fd 11) = + filelock_test.go:147: Unlock(fd 11) = +--- PASS: TestLockExcludesRLock (0.01s) === NAME TestLockExcludesLock - asm_arm64.s:1223: Lock(fd 7) = - filelock_test.go:131: Unlock(fd 7) = ---- PASS: TestLockExcludesLock (0.02s) + asm_arm64.s:1223: Lock(fd 9) = + filelock_test.go:131: Unlock(fd 9) = +--- PASS: TestLockExcludesLock (0.01s) PASS -ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.124s +ok github.com/rogpeppe/go-internal/lockedfile/internal/filelock 0.046s ? github.com/rogpeppe/go-internal/modfile [no test files] ? github.com/rogpeppe/go-internal/module [no test files] === RUN TestWork @@ -2807,7 +2850,7 @@ === RUN TestCache --- PASS: TestCache (0.00s) PASS -ok github.com/rogpeppe/go-internal/par 0.034s +ok github.com/rogpeppe/go-internal/par 0.015s ? 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] @@ -2897,16 +2940,32 @@ === RUN TestScripts/wait === PAUSE TestScripts/wait === CONT TestScripts/big_diff -=== CONT TestScripts/regexpquote - testscript.go:558: > env XXX='hello)' - > grep ^${XXX@R}$ file.txt +=== CONT TestScripts/testscript_stdout_stderr_error +=== CONT TestScripts/readfile +=== CONT TestScripts/nothing +=== CONT TestScripts/testscript_update_script_quote +=== CONT TestScripts/exists +=== CONT TestScripts/hello +=== CONT TestScripts/defer +=== CONT TestScripts/exec_path_change +=== 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/wait -=== CONT TestScripts/exec_path_change +=== 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/cpstdout +=== CONT TestScripts/commandstatus +=== CONT TestScripts/command === CONT TestScripts/cond -=== CONT TestScripts/readfile -=== 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 @@ -2927,16 +2986,327 @@ > [windows] ! exists unix_true PASS -=== CONT TestScripts/pty -=== CONT TestScripts/evalsymlink -=== CONT TestScripts/defer +=== NAME TestScripts/defer testscript.go:558: > testdefer > testdefer > testdefer PASS -=== CONT TestScripts/cpstdout -=== CONT TestScripts/nothing +=== CONT TestScripts/cmpenv +=== CONT TestScripts/cmd_stdout_stderr +=== NAME TestScripts/cmpenv + testscript.go:558: > env $=$ + > cmpenv file1 file2 + PASS + +=== CONT TestScripts/long_diff +=== CONT TestScripts/pty +=== NAME TestScripts/long_diff + testscript.go:558: # Verify the behaviour of cmp in the case of a small diff between + # two large files (0.000s) + > unquote dir/script.txt + > ! testscript dir + [stdout] + > cmp a b + diff a b + --- a + +++ b + @@ -1,4 +1,4 @@ + -a + +b + a + a + a + + FAIL: $WORK/dir/script.txt:1: a and b differ + + > env + WORK=$WORK + PATH=/tmp/testscript-main496389729/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + GOTRACEBACK=system + HOME=/no-home + TMPDIR=$WORK/.tmp + devnull=/dev/null + /=/ + :=: + $=$ + exe= + GONOSUMDB=* + > cmpenv stdout stdout.golden + PASS + +=== NAME TestScripts/testscript_stdout_stderr_error + testscript.go:558: # Verify that stdout and stderr get set event when a user-builtin + # command aborts. Note that we need to assert against stdout + # because our meta testscript command sees only a single log. (0.000s) + > unquote scripts/testscript.txt + > ! testscript -v scripts + [stdout] + > printargs hello world + [stdout] + ["printargs" "hello" "world"] + > echoandexit 1 'this is stdout' 'this is stderr' + [stdout] + this is stdout + [stderr] + this is stderr + FAIL: $WORK/scripts/testscript.txt:2: told to exit with code 1 + + > cmpenv stdout stdout.golden + PASS + +=== NAME TestScripts/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/hello + testscript.go:558: > [!exec:cat] stop + # hello world (0.000s) + > exec cat hello.text + [stdout] + hello world + > stdout 'hello world\n' + > ! stderr . + PASS + +=== NAME TestScripts/testscript_update_script_quote + testscript.go:558: > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript -update scripts + [stdout] + PASS + $WORK/scripts/testscript.txt updated + + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== CONT TestScripts/testscript_logging +=== CONT TestScripts/testscript_duplicate_name +=== CONT TestScripts/testscript_update_script_actual_is_file +=== NAME TestScripts/command + testscript.go:558: > printargs a b 'c d' + [stdout] + ["printargs" "a" "b" "c d"] + > stdout '\["printargs" "a" "b" "c d"\]\n' + PASS + +=== CONT TestScripts/testscript_update_script_expected_not_in_archive +=== CONT TestScripts/testscript_explicit_exec +=== NAME TestScripts/testscript_update_script_actual_is_file + testscript.go:558: > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript -update scripts + [stdout] + PASS + $WORK/scripts/testscript.txt updated + + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== CONT TestScripts/values + testscript.go:558: > test-values + 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 + +=== CONT TestScripts/wait +=== 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/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/interrupt +=== CONT TestScripts/testscript_update_script_stderr +=== CONT TestScripts/testscript_notfound +=== CONT TestScripts/setupfiles + testscript.go:558: # check that the Setup function saw the unarchived files, + # including the temp directory that's always created. (0.000s) + > setup-filenames .tmp a b + PASS + +=== CONT TestScripts/testscript_update_script +=== 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/commandstatus + testscript.go:558: > ! status 1 + [exit status 1] + > ! status 2 + [exit status 2] + > status 0 + PASS + +=== CONT TestScripts/setenv + testscript.go:558: > setSpecialVal + > exists $SPECIALVAL.txt + > ensureSpecialVal + PASS + +=== CONT TestScripts/execguard +=== CONT TestScripts/regexpquote +=== NAME TestScripts/testscript_update_script_expected_not_in_archive + testscript.go:558: # Verify that comparing stdout against a file not in the archive does nothing (0.000s) + > unquote scripts/testscript.txt + > cp scripts/testscript.txt unchanged + > ! testscript -update scripts + [stdout] + > fprintargs stdout right + [stdout] + right + > cp file expect + > cmp stdout expect + diff stdout expect + --- stdout + +++ expect + @@ -1,1 +1,1 @@ + -right + +wrong + + FAIL: $WORK/scripts/testscript.txt:3: stdout and expect differ + + > cmp scripts/testscript.txt unchanged + PASS + +=== NAME TestScripts/interrupt + testscript.go:558: > [windows] skip + > signalcatcher & + > waitfile catchsignal + > interrupt + > wait + [background] signalcatcher: exit status 0 + [stdout] + caught interrupt + > stdout 'caught interrupt' + PASS + +=== NAME TestScripts/testscript_update_script_stderr + testscript.go:558: > unquote scripts/testscript.txt + > unquote testscript-new.txt + > testscript -update scripts + [stdout] + PASS + $WORK/scripts/testscript.txt updated + + > cmp scripts/testscript.txt testscript-new.txt + PASS + +=== CONT TestScripts/evalsymlink +=== CONT TestScripts/stdin +=== NAME TestScripts/execguard + testscript.go:558: > [exec:nosuchcommand] exec nosuchcommand + > [!exec:cat] stop + > exec cat foo + [stdout] + foo + > stdout 'foo\n' + PASS + +=== NAME TestScripts/regexpquote + testscript.go:558: > env XXX='hello)' + > grep ^${XXX@R}$ file.txt + PASS + +=== NAME TestScripts/evalsymlink + testscript.go:558: # If ioutil.TempDir returns a sym linked dir (default behaviour in macOS for example) the + # matcher will have problems with external programs that uses the real path. + # This script tests that $WORK is matched in a consistent way (also see #79). (0.000s) + > [windows] skip + > exec pwd + [stdout] + $WORK + > stdout ^$WORK$ + > exec pwd -P + [stdout] + $WORK + > stdout ^$WORK$ + PASS + +=== NAME TestScripts/testscript_explicit_exec + testscript.go:558: # Check that RequireExplicitExec works; + # it should reject `fprintargs` in favor of `exec fprintargs`, + # but it shouldn't complain about `some-param-cmd`, + # as that Params.Cmds entry won't work via `exec some-param-cmd`. (0.000s) + > unquote scripts-implicit/testscript.txt + > unquote scripts-explicit/testscript.txt + > testscript scripts-implicit + [stdout] + PASS + + > testscript scripts-explicit + [stdout] + PASS + + > ! testscript -explicit-exec scripts-implicit + [stdout] + > fprintargs stdout right + FAIL: $WORK/scripts-implicit/testscript.txt:1: use 'exec fprintargs' rather than 'fprintargs' (because RequireExplicitExec is enabled) + + > testscript -explicit-exec scripts-explicit + [stdout] + PASS + + PASS + === NAME TestScripts/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) @@ -5005,60 +5375,7 @@ > env WORK=$WORK - PATH=/tmp/testscript-main889329354/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games - GOTRACEBACK=system - HOME=/no-home - TMPDIR=$WORK/.tmp - devnull=/dev/null - /=/ - :=: - $=$ - exe= - GONOSUMDB=* - > cmpenv stdout stdout.golden - PASS - -=== CONT TestScripts/execguard -=== CONT TestScripts/exists -=== CONT TestScripts/long_diff -=== NAME TestScripts/exists - testscript.go:558: > chmod 444 foo_r - > exists foo - > ! exists unfoo - # TODO The following line fails but probably should not. - # ! exists -readonly foo (0.000s) - > exists foo_r - > exists -readonly foo_r - PASS - -=== CONT TestScripts/cmpenv - testscript.go:558: > env $=$ - > cmpenv file1 file2 - PASS - -=== CONT TestScripts/commandstatus -=== NAME TestScripts/long_diff - testscript.go:558: # Verify the behaviour of cmp in the case of a small diff between - # two large files (0.000s) - > unquote dir/script.txt - > ! testscript dir - [stdout] - > cmp a b - diff a b - --- a - +++ b - @@ -1,4 +1,4 @@ - -a - +b - a - a - a - - FAIL: $WORK/dir/script.txt:1: a and b differ - - > env - WORK=$WORK - PATH=/tmp/testscript-main889329354/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games + PATH=/tmp/testscript-main496389729/bin:/usr/lib/go-1.24/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path GOTRACEBACK=system HOME=/no-home TMPDIR=$WORK/.tmp @@ -5071,249 +5388,6 @@ > cmpenv stdout stdout.golden PASS -=== CONT TestScripts/command -=== CONT TestScripts/interrupt -=== CONT TestScripts/hello -=== NAME TestScripts/execguard - testscript.go:558: > [exec:nosuchcommand] exec nosuchcommand - > [!exec:cat] stop - > exec cat foo - [stdout] - foo - > stdout 'foo\n' - PASS - -=== CONT TestScripts/testscript_stdout_stderr_error -=== 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/values - testscript.go:558: > test-values - PASS - -=== CONT TestScripts/testscript_update_script_stderr -=== NAME TestScripts/cpstdout - testscript.go:558: > [!exec:cat] stop - # hello world (0.000s) - > exec cat hello.text - [stdout] - hello world - > cp stdout got - > cmp got hello.text - > ! cmp got different.text - > exists got - > mv got new - > ! exists got - > cmp new hello.text - PASS - -=== CONT TestScripts/testscript_update_script_quote -=== 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/testscript_update_script_expected_not_in_archive -=== 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/testscript_update_script_actual_is_file - testscript.go:558: > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript -update scripts - [stdout] - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt - PASS - -=== CONT TestScripts/testscript_update_script -=== NAME TestScripts/testscript_stdout_stderr_error - testscript.go:558: # Verify that stdout and stderr get set event when a user-builtin - # command aborts. Note that we need to assert against stdout - # because our meta testscript command sees only a single log. (0.000s) - > unquote scripts/testscript.txt - > ! testscript -v scripts - [stdout] - > printargs hello world - [stdout] - ["printargs" "hello" "world"] - > echoandexit 1 'this is stdout' 'this is stderr' - [stdout] - this is stdout - [stderr] - this is stderr - FAIL: $WORK/scripts/testscript.txt:2: told to exit with code 1 - - > cmpenv stdout stdout.golden - PASS - -=== CONT TestScripts/testscript_duplicate_name - testscript.go:558: # Check that RequireUniqueNames works; - # it should reject txtar archives with duplicate names as defined by the host system. (0.000s) - > unquote scripts-normalized/testscript.txt - > testscript scripts-normalized - [stdout] - PASS - - > ! testscript -unique-names scripts-normalized - [stdout] - FAIL: $WORK/scripts-normalized/testscript.txt:0: dir/../file would overwrite $WORK/file (because RequireUniqueNames is enabled) - - > stdout '.* would overwrite .* \(because RequireUniqueNames is enabled\)' - PASS - -=== CONT TestScripts/testscript_notfound - testscript.go:558: # Check that unknown commands output a useful error message (0.000s) - > ! testscript notfound - [stdout] - > notexist - FAIL: $WORK/notfound/script.txt:1: unknown command "notexist" - - > stdout 'unknown command "notexist"' - > ! testscript negation - [stdout] - > !exists file - FAIL: $WORK/negation/script.txt:1: unknown command "!exists" (did you mean "! exists"?) - - > stdout 'unknown command "!exists" \(did you mean "! exists"\?\)' - > ! testscript misspelled - [stdout] - > exits file - FAIL: $WORK/misspelled/script.txt:1: unknown command "exits" (did you mean "exists"?) - - > stdout 'unknown command "exits" \(did you mean "exists"\?\)' - PASS - -=== CONT TestScripts/testscript_logging -=== NAME TestScripts/readfile - testscript.go:558: > fprintargs stdout stdout - [stdout] - stdout - > testreadfile stdout - > fprintargs stderr stderr - [stderr] - stderr - > testreadfile stderr - > testreadfile x/somefile - PASS - -=== CONT TestScripts/testscript_explicit_exec -=== NAME TestScripts/hello - testscript.go:558: > [!exec:cat] stop - # hello world (0.000s) - > exec cat hello.text - [stdout] - hello world - > stdout 'hello world\n' - > ! stderr . - PASS - -=== CONT TestScripts/setupfiles - testscript.go:558: # check that the Setup function saw the unarchived files, - # including the temp directory that's always created. (0.000s) - > setup-filenames .tmp a b - PASS - -=== CONT TestScripts/stdin -=== NAME TestScripts/interrupt - testscript.go:558: > [windows] skip - > signalcatcher & - > waitfile catchsignal - > interrupt - > wait - [background] signalcatcher: exit status 0 - [stdout] - caught interrupt - > stdout 'caught interrupt' - PASS - -=== CONT TestScripts/setenv - testscript.go:558: > setSpecialVal - > exists $SPECIALVAL.txt - > ensureSpecialVal - PASS - -=== CONT TestScripts/cmd_stdout_stderr -=== NAME TestScripts/testscript_update_script_stderr - testscript.go:558: > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript -update scripts - [stdout] - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt - PASS - -=== NAME TestScripts/testscript_update_script_quote - testscript.go:558: > unquote scripts/testscript.txt - > unquote testscript-new.txt - > testscript -update scripts - [stdout] - PASS - $WORK/scripts/testscript.txt updated - - > cmp scripts/testscript.txt testscript-new.txt - PASS - -=== NAME TestScripts/testscript_update_script_expected_not_in_archive - testscript.go:558: # Verify that comparing stdout against a file not in the archive does nothing (0.000s) - > unquote scripts/testscript.txt - > cp scripts/testscript.txt unchanged - > ! testscript -update scripts - [stdout] - > fprintargs stdout right - [stdout] - right - > cp file expect - > cmp stdout expect - diff stdout expect - --- stdout - +++ expect - @@ -1,1 +1,1 @@ - -right - +wrong - - FAIL: $WORK/scripts/testscript.txt:3: stdout and expect differ - - > cmp scripts/testscript.txt unchanged - PASS - -=== NAME TestScripts/commandstatus - testscript.go:558: > ! status 1 - [exit status 1] - > ! status 2 - [exit status 2] - > status 0 - PASS - -=== NAME TestScripts/evalsymlink - testscript.go:558: # If ioutil.TempDir returns a sym linked dir (default behaviour in macOS for example) the - # matcher will have problems with external programs that uses the real path. - # This script tests that $WORK is matched in a consistent way (also see #79). (0.000s) - > [windows] skip - > exec pwd - [stdout] - $WORK - > stdout ^$WORK$ - > exec pwd -P - [stdout] - $WORK - > stdout ^$WORK$ - PASS - === NAME TestScripts/testscript_update_script testscript.go:558: # Check that we support both txt and txtar extensions. (0.000s) > unquote scripts/testscript.txt @@ -5330,30 +5404,63 @@ > 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 +=== 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] - PASS - - > testscript scripts-explicit + 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 - - > ! testscript -explicit-exec scripts-implicit + hello stdout from fprintargs + > stdout 'hello stdout from fprintargs' + > ! stderr .+ + > echoandexit 0 'hello stdout from echoandexit' [stdout] - > fprintargs stdout right - FAIL: $WORK/scripts-implicit/testscript.txt:1: use 'exec fprintargs' rather than 'fprintargs' (because RequireExplicitExec is enabled) - - > testscript -explicit-exec scripts-explicit + hello stdout from echoandexit + > stdout 'hello stdout from echoandexit' + > ! stderr .+ + > fprintargs stdout hello stdout from fprintargs [stdout] - PASS - + 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] + hello stdout from echoandexit + > stdout 'hello stdout from echoandexit' + > ! stderr .+ + > fprintargs stdout hello stdout from fprintargs + [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 === NAME TestScripts/stdin @@ -5435,65 +5542,6 @@ [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 - [stdout] - hello stdout from fprintargs - > stdout 'hello stdout from fprintargs' - > ! stderr .+ - > echoandexit 0 'hello stdout from echoandexit' - [stdout] - hello stdout from echoandexit - > stdout 'hello stdout from echoandexit' - > ! stderr .+ - > fprintargs stdout hello stdout from fprintargs - [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' - [stdout] - hello stdout from echoandexit - > stdout 'hello stdout from echoandexit' - > ! stderr .+ - > fprintargs stdout hello stdout from fprintargs - [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 - === NAME TestScripts/testscript_logging testscript.go:558: # non-verbose, non-continue (0.000s) > ! testscript scripts @@ -5609,48 +5657,48 @@ PASS --- PASS: TestScripts (0.00s) - --- PASS: TestScripts/regexpquote (0.00s) + --- PASS: TestScripts/exists (0.00s) + --- PASS: TestScripts/nothing (0.00s) --- PASS: TestScripts/cond (0.00s) --- PASS: TestScripts/defer (0.00s) - --- PASS: TestScripts/big_diff (0.03s) - --- PASS: TestScripts/exists (0.00s) --- PASS: TestScripts/cmpenv (0.00s) - --- PASS: TestScripts/long_diff (0.00s) - --- PASS: TestScripts/execguard (0.05s) - --- PASS: TestScripts/nothing (0.16s) - --- PASS: TestScripts/values (0.00s) - --- PASS: TestScripts/cpstdout (0.17s) - --- PASS: TestScripts/pty (0.18s) - --- PASS: TestScripts/command (0.13s) + --- PASS: TestScripts/long_diff (0.03s) + --- PASS: TestScripts/testscript_stdout_stderr_error (0.03s) + --- PASS: TestScripts/hello (0.03s) + --- PASS: TestScripts/cpstdout (0.03s) + --- PASS: TestScripts/testscript_update_script_quote (0.03s) + --- PASS: TestScripts/command (0.03s) --- PASS: TestScripts/testscript_update_script_actual_is_file (0.00s) - --- PASS: TestScripts/testscript_stdout_stderr_error (0.11s) + --- PASS: TestScripts/values (0.00s) --- PASS: TestScripts/testscript_duplicate_name (0.00s) - --- PASS: TestScripts/testscript_notfound (0.00s) - --- PASS: TestScripts/readfile (0.20s) - --- PASS: TestScripts/hello (0.15s) + --- PASS: TestScripts/readfile (0.04s) + --- PASS: TestScripts/pty (0.01s) --- PASS: TestScripts/setupfiles (0.00s) - --- PASS: TestScripts/interrupt (0.20s) + --- PASS: TestScripts/testscript_notfound (0.00s) + --- PASS: TestScripts/commandstatus (0.04s) --- PASS: TestScripts/setenv (0.00s) - --- PASS: TestScripts/testscript_update_script_stderr (0.10s) - --- PASS: TestScripts/testscript_update_script_quote (0.10s) - --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.10s) - --- PASS: TestScripts/commandstatus (0.29s) - --- PASS: TestScripts/evalsymlink (0.35s) - --- PASS: TestScripts/testscript_update_script (0.16s) - --- PASS: TestScripts/testscript_explicit_exec (0.16s) - --- PASS: TestScripts/stdin (0.18s) - --- PASS: TestScripts/wait (0.44s) - --- PASS: TestScripts/cmd_stdout_stderr (0.32s) - --- PASS: TestScripts/testscript_logging (0.88s) - --- PASS: TestScripts/exec_path_change (15.54s) + --- PASS: TestScripts/testscript_update_script_expected_not_in_archive (0.01s) + --- PASS: TestScripts/interrupt (0.01s) + --- PASS: TestScripts/testscript_update_script_stderr (0.01s) + --- PASS: TestScripts/execguard (0.01s) + --- PASS: TestScripts/regexpquote (0.01s) + --- PASS: TestScripts/evalsymlink (0.01s) + --- PASS: TestScripts/testscript_explicit_exec (0.02s) + --- PASS: TestScripts/big_diff (0.05s) + --- PASS: TestScripts/testscript_update_script (0.01s) + --- PASS: TestScripts/cmd_stdout_stderr (0.06s) + --- PASS: TestScripts/stdin (0.02s) + --- PASS: TestScripts/wait (0.03s) + --- PASS: TestScripts/testscript_logging (0.09s) + --- PASS: TestScripts/exec_path_change (6.19s) === RUN TestTestwork ---- PASS: TestTestwork (4.58s) +--- PASS: TestTestwork (1.85s) === 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/493681197/script-nothing + testscript.go:558: WORK=/tmp/2108274050/script-nothing # Intentionally empty test script; used to test Params.WorkdirRoot (0.000s) PASS @@ -5662,7 +5710,7 @@ === RUN TestUNIX2DOS --- PASS: TestUNIX2DOS (0.00s) PASS -ok github.com/rogpeppe/go-internal/testscript 20.174s +ok github.com/rogpeppe/go-internal/testscript 8.051s ? github.com/rogpeppe/go-internal/testscript/internal/pty [no test files] === RUN Test === RUN Test/basic @@ -5691,7 +5739,7 @@ --- PASS: TestQuote/bad_data (0.00s) --- PASS: TestQuote/no_final_newline (0.00s) PASS -ok github.com/rogpeppe/go-internal/txtar 0.040s +ok github.com/rogpeppe/go-internal/txtar 0.007s patch -R -p1 -i debian/0001-Allow-TestSimple-cover-to-PASS.patch patching file _build/src/github.com/rogpeppe/go-internal/testscript/testscript.go Hunk #1 succeeded at 1155 (offset 57 lines). @@ -5721,8 +5769,8 @@ dh_md5sums -O--builddirectory=_build -O--buildsystem=golang dh_builddeb -O--builddirectory=_build -O--buildsystem=golang dpkg-deb: building package 'golang-github-rogpeppe-go-internal-dev' in '../golang-github-rogpeppe-go-internal-dev_1.12.0-3_all.deb'. -dpkg-deb: building package 'go-internal-dbgsym' in '../go-internal-dbgsym_1.12.0-3_arm64.deb'. dpkg-deb: building package 'go-internal' in '../go-internal_1.12.0-3_arm64.deb'. +dpkg-deb: building package 'go-internal-dbgsym' in '../go-internal-dbgsym_1.12.0-3_arm64.deb'. dpkg-genbuildinfo --build=binary -O../golang-github-rogpeppe-go-internal_1.12.0-3_arm64.buildinfo dpkg-genchanges --build=binary -O../golang-github-rogpeppe-go-internal_1.12.0-3_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -5730,12 +5778,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/4110076/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/4110076/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/2513157 and its subdirectories -I: Current time: Fri Apr 17 19:08:33 -12 2026 -I: pbuilder-time-stamp: 1776496113 +I: removing directory /srv/workspace/pbuilder/4110076 and its subdirectories +I: Current time: Sun Mar 16 14:47:02 +14 2025 +I: pbuilder-time-stamp: 1742086022