gecko-dev/testing/mozbase/manifestparser/tests
Andrew Halberstadt 57887f2601 Bug 1328830 - [manifestparser] Check line continuation before looking for next key, r=jmaher
Currently manifestparser will only look for line continuations *after* looking for a key. This means
that line continuations cannot contain key separators. For example, this:

    [test]
    foo=
      bar=baz

gets treated as:

    {'name': 'test', 'foo': '', 'bar': 'baz'}

Here, bar=baz will be treated as a new key/value pair despite the indentation. This patch switches
the order around, so we look for a continuation first. Now, it is only treated as a continuation if
the indent is greater than the indent of the preceding key.

So this manifest:

    [test]
    foo=bar
      baz=fleem

is a continuation and results in:

    {'name': 'test', 'foo': 'bar\nbaz=fleem'}

But this manifest:

    [test]
      foo=bar
      baz=fleem

is not a continuation, and yields:

    {'name': 'test', 'foo': 'bar', 'baz': 'fleem'}

MozReview-Commit-ID: FAMP5TUIo9q

--HG--
extra : rebase_source : 624c53cfe0565374c1224dd86a3fffc8831279d3
2017-07-19 14:48:01 -04:00
..
include
parent
verifyDirectory
comment-example.ini Bug 1333564 - [manifestparser] Stop supporting ';' as a valid comment character, r=jmaher 2017-01-25 14:38:37 -05:00
default-skipif.ini
default-suppfiles.ini
filter-example.ini
fleem
include-example.ini
include-invalid.ini
just-defaults.ini
manifest.ini Bug 1003417 - Add a 'mozbase' subsuite to python unittests on linux, r=ted 2016-11-16 16:43:42 -05:00
missing-path.ini
mozmill-example.ini
mozmill-restart-example.ini
no-tests.ini
path-example.ini
relative-path.ini
subsuite.ini
test_chunking.py Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester 2016-11-17 16:36:18 -05:00
test_convert_directory.py Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester 2016-11-17 16:36:18 -05:00
test_convert_symlinks.py Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester 2016-11-17 16:36:18 -05:00
test_default_overrides.py Bug 1373294 - Fix E305 (two blank lines after method or class) in files enabled by flake8 linter, r=jmaher 2017-06-15 12:10:59 -04:00
test_expressionparser.py Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester 2016-11-17 16:36:18 -05:00
test_filters.py Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester 2016-11-17 16:36:18 -05:00
test_manifestparser.py Bug 1373294 - Fix E305 (two blank lines after method or class) in files enabled by flake8 linter, r=jmaher 2017-06-15 12:10:59 -04:00
test_read_ini.py Bug 1328830 - [manifestparser] Check line continuation before looking for next key, r=jmaher 2017-07-19 14:48:01 -04:00
test_testmanifest.py Bug 1373294 - Fix E305 (two blank lines after method or class) in files enabled by flake8 linter, r=jmaher 2017-06-15 12:10:59 -04:00