From a207a139bb9a96294c5836f545793c3205538951 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Sat, 8 Jan 2022 22:16:12 +1030 Subject: [PATCH] fix binsubstr calls to not prepare for a regexp --- testdata/scripts/basic.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testdata/scripts/basic.txt b/testdata/scripts/basic.txt index 9b4e7b2..b291be7 100644 --- a/testdata/scripts/basic.txt +++ b/testdata/scripts/basic.txt @@ -23,7 +23,7 @@ stdout 'unknown' ! stdout $gofullversion # The binary can't contain the version string either. -! binsubstr main$exe ${WORK@R} 'garble_main.go' 'globalVar' 'globalFunc' 'garble' $gofullversion +! binsubstr main$exe ${WORK} 'garble_main.go' 'globalVar' 'globalFunc' 'garble' $gofullversion [short] stop # checking that the build is reproducible is slow @@ -53,7 +53,7 @@ cmp stderr main.stderr # The default build includes full non-trimmed paths, as well as our names. # Only check $WORK on non-windows, because it's difficult to do it there. binsubstr main$exe 'garble_main.go' 'globalVar' 'globalFunc' $gofullversion -[!windows] binsubstr main$exe ${WORK@R} +[!windows] binsubstr main$exe ${WORK} -- go.mod -- module test/mainfoo