aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-11-07 20:57:56 -0500
committerGitHub <noreply@github.com>2018-11-07 20:57:56 -0500
commitb1fd6237d1304f3d57abdafd3e6e738c1ece9f83 (patch)
treed9ec7693c128017e63f8b483cb9b7dc28cc3b003 /python/servo
parent44b75ed588626113ec3e14adacbb47d508f4688b (diff)
parent694991ad7e74dcbe42544c049d834e4d664b353f (diff)
downloadservo-b1fd6237d1304f3d57abdafd3e6e738c1ece9f83.tar.gz
servo-b1fd6237d1304f3d57abdafd3e6e738c1ece9f83.zip
Auto merge of #22141 - pyfisch:add-note-fmt, r=SimonSapin
Hint ./mach fmt Just thought that a note how to fix if rustfmt fails would be nice. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22141) <!-- Reviewable:end -->
Diffstat (limited to 'python/servo')
-rw-r--r--python/servo/testing_commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index 1a4f24716e1..bd0271765f1 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -331,6 +331,8 @@ class MachCommands(CommandBase):
tidy_failed = tidy.scan(not all_files, not no_progress, stylo=stylo)
self.install_rustfmt()
rustfmt_failed = self.call_rustup_run(["cargo", "fmt", "--", "--check"])
+ if rustfmt_failed:
+ print("Run `./mach fmt` to fix the formatting")
return tidy_failed or manifest_dirty or rustfmt_failed
@Command('test-webidl',