Skip to content

Commit ab44a8a

Browse files
authored
Magician vcr eap (#12547)
1 parent b1a07f0 commit ab44a8a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.ci/magician/cmd/interfaces.go

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ type ExecRunner interface {
4848
RemoveAll(path string) error
4949
PushDir(path string) error
5050
PopDir() error
51+
ReadFile(name string) (string, error)
5152
WriteFile(name, data string) error
5253
AppendFile(name, data string) error // Not used (yet).
5354
Run(name string, args []string, env map[string]string) (string, error)

.ci/magician/cmd/test_eap_vcr.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ func execTestEAPVCR(changeNumber, genPath, kokoroArtifactsDir, modifiedFilePath
104104
return fmt.Errorf("error changing to gen path: %w", err)
105105
}
106106

107-
changedFiles, err := rnr.Run("git", []string{"diff", "--name-only"}, nil)
107+
changedFiles, err := rnr.ReadFile("diff.log")
108108
if err != nil {
109-
return fmt.Errorf("error diffing gen path: %w", err)
109+
return fmt.Errorf("error reading diff log: %w", err)
110110
}
111111

112112
services, runFullVCR := modifiedPackages(strings.Split(changedFiles, "\n"), provider.Private)

0 commit comments

Comments
 (0)