Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Fix CI (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
HosseinYousefi authored Jul 25, 2023
1 parent c951f23 commit f4fb338
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jnigen/test/test_util/test_util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ void comparePaths(String path1, String path2) {
if (diffProc.exitCode != 0) {
final originalDiff = diffProc.stdout;
log.warning(
"Paths $path1 and $path2 differ, comparing by ignoring space change");
final fallbackDiffProc = Process.runSync(
"git", [...diffCommand, '--ignore-space-change', path1, path2]);
"Paths $path1 and $path2 differ, Running dart format on $path1.");
Process.runSync('dart', ['format', path1]);
final fallbackDiffProc =
Process.runSync("git", [...diffCommand, path1, path2]);
if (fallbackDiffProc.exitCode != 0) {
stderr.writeln(originalDiff);
throw Exception("Paths $path1 and $path2 differ");
Expand Down

0 comments on commit f4fb338

Please sign in to comment.