3
0
Fork 0
forked from mirrors/nixpkgs

doc: Escape `>'.

svn path=/nixos/trunk/; revision=26212
This commit is contained in:
Ludovic Courtès 2011-03-08 21:14:21 +00:00
parent 79a322f050
commit d028ec95d0

View file

@ -413,21 +413,21 @@ $ qemu-system-x86_64 -kernel ./kernel/bzImage -initrd ./initrd/initrd -hda /dev/
$ nix-build tests/ -A nfs.driver
$ ./result/bin/nixos-test-driver
starting VDE switch for network 1
>
>
</screen>
Perl statements can now be typed in to start or manipulate the
VMs:
<screen>
> startAll;
&gt; startAll;
(the VMs start booting)
> $server->waitForJob("nfs-kernel-nfsd");
> $client1->succeed("flock -x /data/lock -c 'sleep 100000' &");
> $client2->fail("flock -n -s /data/lock true");
> $client1->shutdown;
&gt; $server-&gt;waitForJob("nfs-kernel-nfsd");
&gt; $client1-&gt;succeed("flock -x /data/lock -c 'sleep 100000' &");
&gt; $client2-&gt;fail("flock -n -s /data/lock true");
&gt; $client1-&gt;shutdown;
(this releases client1's lock)
> $client2->succeed("flock -n -s /data/lock true");
&gt; $client2-&gt;succeed("flock -n -s /data/lock true");
</screen>
The function <command>testScript</command> executes the entire