Skip to content

Commit

Permalink
test: try to fix copying expected image for mismatches on device
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Nov 20, 2020
1 parent cede524 commit 83bbfef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/lib/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ class DeviceTestDetails {
// Grab expected output image.
if (!details.blob) {
// We're comparing against a snapshot in the suite, copy the original file from the suite over
await fs.copy(path.join(PROJECT_DIR, 'Resources', details.platform, baseImageRelativePath), expectedOutputPath);
await fs.copy(path.join(PROJECT_DIR, 'Resources', details.platform, `${baseImageRelativePath}.png`), expectedOutputPath);
} else {
// ti.blob generates expected output image for comparison.
await this.grabAppImage(details.platform, `${baseImagePath}_expected.png`, expectedOutputPath);
Expand Down

0 comments on commit 83bbfef

Please sign in to comment.