diff --git a/client/client_test.go b/client/client_test.go index 701b5ab..6fe59d2 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -279,7 +279,7 @@ func testIntegrationWithNewDevice(t *testing.T, tester shellTester) { if strings.Contains(out, "thisisnotrecorded") { t.Fatalf("hishtory export contains a command that should not have been recorded, out=%#v", out) } - expectedOutputWithoutKey := "hishtory status\nhishtory query\nls /a\nls /bar\nls /foo\necho foo\necho bar\nhishtory enable\necho thisisrecorded\nhishtory query\nhishtory query foo\necho hello | grep complex | sed s/h/i/g; echo baz && echo \"fo 'o\"\nhishtory query complex\nhishtory query\necho mynewcommand\nhishtory query\nyes | hishtory init %s\nhishtory query\necho mynewercommand\nhishtory query\nothercomputer\nhishtory query\nhishtory reupload\n" + expectedOutputWithoutKey := "hishtory status\nhishtory query\nls /a\nls /bar\nls /foo\necho foo\necho bar\nhishtory enable\necho thisisrecorded\nhishtory query\nhishtory query foo\necho hello | grep complex | sed s/h/i/g; echo baz && echo \"fo 'o\" # mycommand\nhishtory query complex\nhishtory query\necho mynewcommand\nhishtory query\nyes | hishtory init %s\nhishtory query\necho mynewercommand\nhishtory query\nothercomputer\nhishtory query\nhishtory reupload\n" expectedOutput := fmt.Sprintf(expectedOutputWithoutKey, userSecret) if diff := cmp.Diff(expectedOutput, out); diff != "" { t.Fatalf("hishtory export mismatch (-expected +got):\n%s\nout=%#v", diff, out) diff --git a/client/lib/goldens/testIntegrationWithNewDevice-bash b/client/lib/goldens/testIntegrationWithNewDevice-bash index 9c5dc63..711534a 100644 --- a/client/lib/goldens/testIntegrationWithNewDevice-bash +++ b/client/lib/goldens/testIntegrationWithNewDevice-bash @@ -13,7 +13,7 @@ set -emo pipefail hishtory query set -emo pipefail hishtory query foo -echo hello | grep complex | sed s/h/i/g; echo baz && echo "fo 'o" +echo hello | grep complex | sed s/h/i/g; echo baz && echo "fo 'o" # mycommand set -emo pipefail hishtory query complex set -emo pipefail diff --git a/client/lib/goldens/testIntegrationWithNewDevice-zsh b/client/lib/goldens/testIntegrationWithNewDevice-zsh index b3fa8ce..6558132 100644 --- a/client/lib/goldens/testIntegrationWithNewDevice-zsh +++ b/client/lib/goldens/testIntegrationWithNewDevice-zsh @@ -13,7 +13,7 @@ set -eo pipefail hishtory query set -eo pipefail hishtory query foo -echo hello | grep complex | sed s/h/i/g; echo baz && echo "fo 'o" +echo hello | grep complex | sed s/h/i/g; echo baz && echo "fo 'o" # mycommand set -eo pipefail hishtory query complex set -eo pipefail