diff options
author | Robert Hensing | 2022-07-11 11:44:15 +0200 |
---|---|---|
committer | Robert Hensing | 2022-09-24 17:38:11 +0100 |
commit | b2caf7965c0ba5526956ad05d340168a77fd799e (patch) | |
tree | a801e7a53f9ae8d5fa8d7bf42521ac5b502962de /nixos | |
parent | 666e969da02e809ccd9f933e50d5759712286f8b (diff) |
nixos/doc/writing-nixos-tests: Clarify working directory
Co-authored-by: christian-burger <christian@krikkel.de>
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/doc/manual/development/writing-nixos-tests.section.md | 1 | ||||
-rw-r--r-- | nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/nixos/doc/manual/development/writing-nixos-tests.section.md b/nixos/doc/manual/development/writing-nixos-tests.section.md index 043da45d517f..f6f6c960b071 100644 --- a/nixos/doc/manual/development/writing-nixos-tests.section.md +++ b/nixos/doc/manual/development/writing-nixos-tests.section.md @@ -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 ``` diff --git a/nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml b/nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml index ed6662f637fc..c5343f0a711f 100644 --- a/nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml +++ b/nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml @@ -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> |