aszlig ee39d4b98a
nixos/tests/virtualbox: Fix @shell@ expansion
This has surfaced since f803270b7e00fa7124282809838d5652083b6aad.

The commit bumped bash to version 4.4, which caused to change the order
of --subst-var flags in substituteAll, which this test was relying on,
because it added a @shell@ to boot.initrd.postMountCommands.

Our substituter is currently working a bit like this:

original.replace('@var1@', 'val1').replace('@var2@', 'val2')...

Unfortunately, this means that if @var2@ occurs within @var1@ it is
replaced by the new value, so the order of the substvars actually
matter. I highly doubt that we want a behaviour like this and I'm
wondering why it didn't occur to me as a problem while writing the
initial implementation of the VirtualBox tests.

Whether to get rid of this and disallowing substitution of substvars
within substvars is another topic which I think needs discussion in a
different place.

As for now, I'm using stdenv.shell, because the closure size of this
should fit within the initrd, so it's fine especially because it's just
a test.

Tested with the net-hostonlyif and systemd-detect-virt tests and they
both succeed with this change.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Reported-by: @globin on IRC
2017-03-27 04:53:17 +02:00
..
2016-04-12 19:13:52 +02:00
2016-02-28 16:18:39 +01:00
2016-11-24 22:28:03 +01:00
2017-03-07 00:45:37 +01:00
2016-09-16 22:06:16 +02:00
2016-08-02 20:58:35 -04:00
2017-02-17 16:04:49 +01:00
2017-02-17 16:04:49 +01:00
2017-02-17 16:04:49 +01:00
2016-09-13 12:51:13 +02:00
2016-10-01 17:08:48 +02:00
2016-12-31 09:36:57 +01:00
2016-01-23 01:20:14 +01:00
2016-10-15 13:54:59 -04:00
2016-09-16 22:06:16 +02:00
2016-11-28 15:33:58 +01:00
2017-02-17 16:04:49 +01:00
2016-10-01 23:18:24 +02:00
2016-12-29 20:09:46 -05:00
2016-12-29 20:09:46 -05:00
2016-09-17 10:47:36 +01:00
2016-09-13 09:45:08 +02:00
2017-03-08 04:54:17 +01:00
2017-02-05 12:41:21 +03:00
2017-02-26 11:14:32 +01:00
2016-12-20 23:26:51 +01:00
2015-08-31 18:36:32 +02:00
2017-03-12 16:01:07 +01:00
2017-03-01 03:16:35 +03:00
2015-12-25 15:55:07 +01:00
2016-09-13 22:46:46 +02:00
2016-04-12 19:13:52 +02:00