mirror of https://github.com/databricks/cli.git
acc: do not show diff for missing output file (#2350)
It's not interesting since it just dumps what is in the repo. This is especially annoying with bundle/templates tests with a lot of files.
This commit is contained in:
parent
fac9bcf1af
commit
2d09636611
|
@ -402,8 +402,7 @@ func doComparison(t *testing.T, repls testdiff.ReplacementsContext, dirRef, dirN
|
|||
|
||||
// The test did not produce an expected output file.
|
||||
if okRef && !okNew {
|
||||
t.Errorf("Missing output file: %s\npathRef: %s\npathNew: %s", relPath, pathRef, pathNew)
|
||||
testdiff.AssertEqualTexts(t, pathRef, pathNew, valueRef, valueNew)
|
||||
t.Errorf("Missing output file: %s", relPath)
|
||||
if testdiff.OverwriteMode {
|
||||
t.Logf("Removing output file: %s", relPath)
|
||||
require.NoError(t, os.Remove(pathRef))
|
||||
|
|
Loading…
Reference in New Issue