Unverified Commit 0bde65dd authored by Alex's avatar Alex Committed by GitHub

fixed a small conductor messaging bug (#90229)

* fixed a small messaging bug

* forgot to remove a s
parent 93de90bc
...@@ -137,7 +137,11 @@ void runNext({ ...@@ -137,7 +137,11 @@ void runNext({
if (unappliedCherrypicks.isEmpty) { if (unappliedCherrypicks.isEmpty) {
stdio.printStatus('All engine cherrypicks have been auto-applied by the conductor.\n'); stdio.printStatus('All engine cherrypicks have been auto-applied by the conductor.\n');
} else { } else {
stdio.printStatus('There were ${unappliedCherrypicks.length} cherrypicks that were not auto-applied.'); if (unappliedCherrypicks.length == 1) {
stdio.printStatus('There was ${unappliedCherrypicks.length} cherrypick that was not auto-applied.');
} else {
stdio.printStatus('There were ${unappliedCherrypicks.length} cherrypicks that were not auto-applied.');
}
stdio.printStatus('These must be applied manually in the directory ' stdio.printStatus('These must be applied manually in the directory '
'${state.engine.checkoutPath} before proceeding.\n'); '${state.engine.checkoutPath} before proceeding.\n');
} }
...@@ -264,9 +268,12 @@ void runNext({ ...@@ -264,9 +268,12 @@ void runNext({
} else if (unappliedCherrypicks.isEmpty) { } else if (unappliedCherrypicks.isEmpty) {
stdio.printStatus('All framework cherrypicks were auto-applied by the conductor.'); stdio.printStatus('All framework cherrypicks were auto-applied by the conductor.');
} else { } else {
stdio.printStatus( if (unappliedCherrypicks.length == 1) {
'There were ${unappliedCherrypicks.length} cherrypicks that were not auto-applied.', stdio.printStatus('There was ${unappliedCherrypicks.length} cherrypick that was not auto-applied.',);
); }
else {
stdio.printStatus('There were ${unappliedCherrypicks.length} cherrypicks that were not auto-applied.',);
}
stdio.printStatus( stdio.printStatus(
'These must be applied manually in the directory ' 'These must be applied manually in the directory '
'${state.framework.checkoutPath} before proceeding.\n', '${state.framework.checkoutPath} before proceeding.\n',
......
...@@ -751,7 +751,7 @@ void main() { ...@@ -751,7 +751,7 @@ void main() {
); );
expect( expect(
stdio.stdout, stdio.stdout,
contains('There were 1 cherrypicks that were not auto-applied'), contains('There was 1 cherrypick that was not auto-applied'),
); );
expect( expect(
stdio.stdout, stdio.stdout,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment