summary refs log tree commit diff
path: root/nixos/doc/manual/development
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2020-06-13 12:04:05 +0200
committerrnhmjoj <rnhmjoj@inventati.org>2020-06-24 10:22:53 +0200
commitb520055df6c9913ef4ddbc931a1635516433a7a9 (patch)
tree86c886b7f99e53cdb66f098ad1c5a5e0623920e7 /nixos/doc/manual/development
parent37ec7c488a3579a868014f53b87f669bf65ed83f (diff)
downloadnixpkgs-b520055df6c9913ef4ddbc931a1635516433a7a9.tar
nixpkgs-b520055df6c9913ef4ddbc931a1635516433a7a9.tar.gz
nixpkgs-b520055df6c9913ef4ddbc931a1635516433a7a9.tar.bz2
nixpkgs-b520055df6c9913ef4ddbc931a1635516433a7a9.tar.lz
nixpkgs-b520055df6c9913ef4ddbc931a1635516433a7a9.tar.xz
nixpkgs-b520055df6c9913ef4ddbc931a1635516433a7a9.tar.zst
nixpkgs-b520055df6c9913ef4ddbc931a1635516433a7a9.zip
nixos/lib/test-driver: add wait_for_console_text
This method is similar to wait_for_text but is based on matching
serial console lines instead of the VGA output.
Diffstat (limited to 'nixos/doc/manual/development')
-rw-r--r--nixos/doc/manual/development/writing-nixos-tests.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/doc/manual/development/writing-nixos-tests.xml b/nixos/doc/manual/development/writing-nixos-tests.xml
index 150bea8c2d8..ff37b3b2f6f 100644
--- a/nixos/doc/manual/development/writing-nixos-tests.xml
+++ b/nixos/doc/manual/development/writing-nixos-tests.xml
@@ -362,6 +362,18 @@ start_all()
    </varlistentry>
    <varlistentry>
     <term>
+     <methodname>wait_for_console_text</methodname>
+    </term>
+    <listitem>
+     <para>
+      Wait until the supplied regular expressions match a line of the serial
+      console output. This method is useful when OCR is not possibile or
+      accurate enough.
+     </para>
+    </listitem>
+   </varlistentry>
+   <varlistentry>
+    <term>
      <methodname>wait_for_window</methodname>
     </term>
     <listitem>