aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/tests/test-data/machines.bad_format
diff options
context:
space:
mode:
authorAlexey Novikov <alexey@novikov.io>2021-10-12 16:18:44 +0400
committerAlexey Novikov <alexey@novikov.io>2021-10-17 12:45:56 +0400
commite989c83b44d7c4d8ffe2e5f4231e4861c5f7732f (patch)
tree3ae4123d242a00e628fbae3c08f2b2a3ae1b1d98 /src/libstore/tests/test-data/machines.bad_format
parent64a3b045c12c3e0fa98f5967ceb38378eaf70e2d (diff)
Add error reporting to machine spec paser
Currently machine specification (`/etc/nix/machine`) parser fails with a vague exception if the file had incorrect format. This commit adds verbose exceptions and unit-tests for the parser.
Diffstat (limited to 'src/libstore/tests/test-data/machines.bad_format')
-rw-r--r--src/libstore/tests/test-data/machines.bad_format1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/tests/test-data/machines.bad_format b/src/libstore/tests/test-data/machines.bad_format
new file mode 100644
index 000000000..7255a1216
--- /dev/null
+++ b/src/libstore/tests/test-data/machines.bad_format
@@ -0,0 +1 @@
+nix@scratchy.labs.cs.uu.nl - - eight