about summary refs log tree commit diff
path: root/nixos/doc
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2022-07-11 11:44:15 +0200
committerRobert Hensing <robert@roberthensing.nl>2022-09-24 17:38:11 +0100
commitb2caf7965c0ba5526956ad05d340168a77fd799e (patch)
treea801e7a53f9ae8d5fa8d7bf42521ac5b502962de /nixos/doc
parent666e969da02e809ccd9f933e50d5759712286f8b (diff)
nixos/doc/writing-nixos-tests: Clarify working directory
Co-authored-by: christian-burger <christian@krikkel.de>
Diffstat (limited to 'nixos/doc')
-rw-r--r--nixos/doc/manual/development/writing-nixos-tests.section.md1
-rw-r--r--nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml1
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 043da45d517f4..f6f6c960b0719 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 ed6662f637fcc..c5343f0a711fa 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>