]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Order of option lines between interfaces should be preserved: | |
3 | # eth0 is unconfigured and will thus end up at the end as 'manual' | |
4 | # | |
5 | my $ordered = <<'ORDERED'; | |
6 | source /etc/network/config1 | |
7 | ||
8 | iface eth1 inet manual | |
9 | ||
10 | source-directory /etc/network/interfaces.d | |
11 | ||
12 | iface eth2 inet manual | |
13 | ||
14 | iface eth3 inet manual | |
15 | ||
16 | ORDERED | |
17 | ||
18 | r("$ordered", <<'/proc/net/dev' | |
19 | eth0: | |
20 | eth1: | |
21 | eth2: | |
22 | eth3: | |
23 | /proc/net/dev | |
24 | ); | |
25 | ||
26 | expect(load('loopback') . $ordered . "iface eth0 inet manual\n\n"); | |
27 | ||
28 | 1; |