diff options
author | Aneesh Agrawal <aneeshusa@gmail.com> | 2016-08-05 09:42:04 -0400 |
---|---|---|
committer | Aneesh Agrawal <aneeshusa@gmail.com> | 2016-08-05 09:42:04 -0400 |
commit | f07d8f188a0621545957a0f348271d29b08704ec (patch) | |
tree | 588cf61bdc7b92ba628d5341d9e28bb40be46e7d /python/tidy/servo_tidy_tests/test_tidy.py | |
parent | 9231ca1c6991c2eaf0d7e08674b2fc9c84a31695 (diff) | |
download | servo-f07d8f188a0621545957a0f348271d29b08704ec.tar.gz servo-f07d8f188a0621545957a0f348271d29b08704ec.zip |
Add lint for `[` instead of `[[` in shells scripts
Diffstat (limited to 'python/tidy/servo_tidy_tests/test_tidy.py')
-rw-r--r-- | python/tidy/servo_tidy_tests/test_tidy.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy_tests/test_tidy.py b/python/tidy/servo_tidy_tests/test_tidy.py index 2eee04a19a3..92b304a5c1a 100644 --- a/python/tidy/servo_tidy_tests/test_tidy.py +++ b/python/tidy/servo_tidy_tests/test_tidy.py @@ -54,6 +54,8 @@ class CheckTidiness(unittest.TestCase): self.assertEqual('script is missing options "set -o errexit", "set -o pipefail"', errors.next()[2]) self.assertEqual('script should not use backticks for command substitution', errors.next()[2]) self.assertEqual('variable substitutions should use the full \"${VAR}\" form', errors.next()[2]) + self.assertEqual('script should use `[[` instead of `[` for conditional testing', errors.next()[2]) + self.assertEqual('script should use `[[` instead of `[` for conditional testing', errors.next()[2]) self.assertNoMoreErrors(errors) def test_rust(self): |