Replace -c parameter with --config

Also, reformat the invocation of Lorax, since
Lorax does not accept -c=%s, only -c %s.

Jira: RHELCMP-713
Signed-off-by: Bohdan Khomutskyi <bkhomuts@redhat.com>
This commit is contained in:
Bohdan Khomutskyi 2020-08-13 10:29:53 +02:00
parent c273350fe5
commit 7a6d8303dc
2 changed files with 5 additions and 2 deletions

View File

@ -100,7 +100,9 @@ class LoraxWrapper(object):
cmd.append("--squashfs-only")
if configuration_file:
cmd.append("-c=%s" % configuration_file)
# Note, at the moment Lorax does not accept --config=%s
cmd.append("--config")
cmd.append(configuration_file)
output_dir = os.path.abspath(output_dir)
cmd.append(output_dir)

View File

@ -88,7 +88,8 @@ class LoraxWrapperTest(unittest.TestCase):
"--dracut-arg=--foo",
"--dracut-arg=bar",
"--squashfs-only",
"-c=/storage/RHEL-7.8-20200731.n.0/"
"--config",
"/storage/RHEL-7.8-20200731.n.0/"
+ "logs/x86_64/buildinstall-Server-logs/lorax.conf",
"/mnt/output_dir",
],