tests/tcg/multiarch: don't hard code paths/ports for linux-test
commit5aa632d5d98fc2907cebec753181fc8a56c7d476
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 8 Jun 2018 19:15:03 +0000 (8 20:15 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 20 Jun 2018 19:22:34 +0000 (20 20:22 +0100)
treeb8bdc2d12415f6c7b00b04e576b286d05b08e684
parent875fcce66139967887fbcfb322540d912a7a2b22
tests/tcg/multiarch: don't hard code paths/ports for linux-test

The fixed path and ports get in the way of running our tests and
builds in parallel. Instead of using TESTPATH we use mkdtemp() and
instead of a fixed port we allow the kernel to assign one and query it
afterwards.

Ideally test directory creation should be common functionally across
all TCG tests but this could complicate an already huge patch series
so we mark it as a TODO for next time.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
tests/tcg/multiarch/linux-test.c