Add basic support for stripping out HISTTIMEFORMAT prefixes

This commit is contained in:
David Dworken
2022-06-12 21:28:19 -07:00
parent 3f32891469
commit e8f001c78b
4 changed files with 119 additions and 1 deletions

View File

@ -61,6 +61,13 @@ func BackupAndRestoreWithId(t *testing.T, id string) func() {
}
}
func BackupAndRestoreEnv(k string) func() {
origValue := os.Getenv(k)
return func() {
os.Setenv(k, origValue)
}
}
func checkError(err error) {
if err != nil && os.Getenv("GITHUB_ACTION") == "" {
_, filename, line, _ := runtime.Caller(1)