tests/numa-test: make top level args dynamic and g_autofree(cli) cleanups
commit786ed5c497fd30c52b3e84ea9c721a928ba8836c
authorIgor Mammedov <imammedo@redhat.com>
Wed, 19 Feb 2020 16:09:52 +0000 (19 11:09 -0500)
committerPatchew Importer <importer@patchew.org>
Wed, 19 Feb 2020 16:50:02 +0000 (19 16:50 +0000)
tree3d6f576a692e0fbe20cc429526a63b4526926c88
parent4ebc74dbbf7ad50e4101629f3f5da5fdc1544051
tests/numa-test: make top level args dynamic and g_autofree(cli) cleanups

Use GString to pass argument to make_cli() so that it would be easy
to dynamically change test case arguments from main(). The follow up
patch will use it to change RAM size options depending on target.

While at it cleanup 'cli' freeing, using g_autofree annotation.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20200219160953.13771-79-imammedo@redhat.com>
tests/qtest/numa-test.c