about summary refs log tree commit diff
path: root/nixos/tests/syncthing.nix
diff options
context:
space:
mode:
authorScott Worley <scottworley@scottworley.com>2020-09-15 15:27:51 -0700
committerFrederik Rietdijk <fridh@fridh.nl>2020-10-25 11:01:29 +0100
commit331348799739277e9e6c055226a9918fff4f4fc7 (patch)
tree1f3ac781dbc68e83a802f22e64433a1d9cc643d4 /nixos/tests/syncthing.nix
parent07913f838b14d3f13e610f649e0e965a261996c3 (diff)
nixos/tests/syncthing: Use curl --fail
Diffstat (limited to 'nixos/tests/syncthing.nix')
-rw-r--r--nixos/tests/syncthing.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/syncthing.nix b/nixos/tests/syncthing.nix
index 9e2a8e01e3fb8..ac9df5e50c8c1 100644
--- a/nixos/tests/syncthing.nix
+++ b/nixos/tests/syncthing.nix
@@ -25,7 +25,7 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
             "xmllint --xpath 'string(configuration/gui/apikey)' %s/config.xml" % confdir
         ).strip()
         oldConf = host.succeed(
-            "curl -Ss -H 'X-API-Key: %s' 127.0.0.1:8384/rest/system/config" % APIKey
+            "curl -Ssf -H 'X-API-Key: %s' 127.0.0.1:8384/rest/system/config" % APIKey
         )
         conf = json.loads(oldConf)
         conf["devices"].append({"deviceID": deviceID, "id": name})
@@ -39,7 +39,7 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
         )
         newConf = json.dumps(conf)
         host.succeed(
-            "curl -Ss -H 'X-API-Key: %s' 127.0.0.1:8384/rest/system/config -d %s"
+            "curl -Ssf -H 'X-API-Key: %s' 127.0.0.1:8384/rest/system/config -d %s"
             % (APIKey, shlex.quote(newConf))
         )