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>
master
Bohdan Khomutskyi 3 years ago
parent c273350fe5
commit 7a6d8303dc

@ -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)

@ -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",
],

Loading…
Cancel
Save