nixos/doc/writing-nixos-tests: Clarify working directory

Co-authored-by: christian-burger <christian@krikkel.de>
This commit is contained in:
Robert Hensing 2022-07-11 11:44:15 +02:00 committed by Robert Hensing
parent 666e969da0
commit b2caf7965c
2 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,7 @@ Overrides can be added by defining an anonymous module in `all-tests.nix`.
You can run a test with attribute name `mytest` in `nixos/tests/all-tests.nix` by invoking:
```shell
cd /my/git/clone/of/nixpkgs
nix-build -A nixosTests.mytest
```

View File

@ -77,6 +77,7 @@
in <literal>nixos/tests/all-tests.nix</literal> by invoking:
</para>
<programlisting>
cd /my/git/clone/of/nixpkgs
nix-build -A nixosTests.mytest
</programlisting>
</section>