kumquat-buildroot/support/testing/infra
Yann E. MORIN cf3cd4388a support/tests: allow properly indented config fragment
Currently, defining a config fragment in the runtime test infra requires
that the fragment not to be indented. This is beark, and causes grievance
when looking at the code (e.g. to fix it).

Just strip out all leading spaces/tabs when writing the configuration
lines into the config file, allowing in-line indented config fragments,
like so:

    class TestFoo(bla):
        config = bla.config + \
            """
            FOO=y
            # BAR is not set
            """

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-07-18 23:46:09 +02:00
..
__init__.py support/testing: strip /usr/ part from HOST_DIR 2017-07-10 17:46:22 +02:00
basetest.py support/tests: allow properly indented config fragment 2017-07-18 23:46:09 +02:00
builder.py support/testing: simplify logging by keeping the log file open 2017-05-17 21:59:58 +02:00
emulator.py support/testing: large timeout for login prompt 2017-07-01 16:05:14 +02:00