summary refs log tree commit diff
path: root/nixos/doc/manual/development
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-04-25 08:48:47 +0000
committerAlyssa Ross <hi@alyssa.is>2023-04-25 08:55:30 +0000
commitd6e84a4574a200de63e8fe86ef8574b507fd366e (patch)
tree1b64390b06375630554d7c999d1a083387719c19 /nixos/doc/manual/development
parent6d69171610869050b8c1daa07ec2446a5c897c19 (diff)
downloadnixpkgs-d6e84a4574a200de63e8fe86ef8574b507fd366e.tar
nixpkgs-d6e84a4574a200de63e8fe86ef8574b507fd366e.tar.gz
nixpkgs-d6e84a4574a200de63e8fe86ef8574b507fd366e.tar.bz2
nixpkgs-d6e84a4574a200de63e8fe86ef8574b507fd366e.tar.lz
nixpkgs-d6e84a4574a200de63e8fe86ef8574b507fd366e.tar.xz
nixpkgs-d6e84a4574a200de63e8fe86ef8574b507fd366e.tar.zst
nixpkgs-d6e84a4574a200de63e8fe86ef8574b507fd366e.zip
nixosTest: remove hostname limitations
Diffstat (limited to 'nixos/doc/manual/development')
-rw-r--r--nixos/doc/manual/development/writing-nixos-tests.section.md5
1 files changed, 5 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 3de46fda3df..486a4b64a26 100644
--- a/nixos/doc/manual/development/writing-nixos-tests.section.md
+++ b/nixos/doc/manual/development/writing-nixos-tests.section.md
@@ -130,6 +130,11 @@ starting them in parallel:
 start_all()
 ```
 
+If the hostname of a node contains characters that can't be used in a
+Python variable name, those characters will be replaced with
+underscores in the variable name, so `nodes.machine-a` will be exposed
+to Python as `machine_a`.
+
 ## Machine objects {#ssec-machine-objects}
 
 The following methods are available on machine objects: