qa/tasks/autotest: use remote.write_file

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
This commit is contained in:
Kyr Shatskyy 2020-07-20 12:33:01 +02:00 committed by Kyr Shatskyy
parent bdb3c8a23d
commit ba4aff144e

View File

@ -120,8 +120,7 @@ def _run_tests(testdir, remote, role, tests):
id=id_,
)
control = '{tdir}/control.{tag}'.format(tdir=testdir, tag=tag)
teuthology.write_file(
remote=remote,
remote.write_file(
path=control,
data='import json; data=json.loads({data!r}); job.run_test(**data)'.format(
data=json.dumps(dict(