]> git.ipfire.org Git - thirdparty/dracut.git/commit
test/TEST-14-IMSM: detect failure to compose the test setup root
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 25 Jun 2019 15:39:57 +0000 (17:39 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 19 Jul 2019 14:10:15 +0000 (16:10 +0200)
commitc27ed38bb2986d31b08257782ce2b24a80415c6c
treee330d3f374850b408d4aa10ebd106836f7de8592
parent5a962b5939acf72a38173b388b2b62420bd81b80
test/TEST-14-IMSM: detect failure to compose the test setup root

The dracut-root-block-created line should not be created if we fail to copy
in the required files to sysroot. Let's turn on -e to trap failures and
poweroff on them, like some other tests do.

Also remove the &&. Not only it is unnecessary with -e, but defeats it.
From bash(1):

  The shell does not exit if the command that fails is [...] part of any
  command executed in a && or || list except the command following the
  final && or || [...]
test/TEST-14-IMSM/create-root.sh