summary refs log tree commit diff
path: root/nixos/tests/networking.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2021-05-08 23:36:39 +0200
committeraszlig <aszlig@nix.build>2021-05-09 02:28:20 +0200
commitc066cc3c0b1f7f3c4b7e11ef330ce0980440273a (patch)
treeb955cdc09c6c7a37efd599757f7d34991dc2df4d /nixos/tests/networking.nix
parent62a518b904a235709b30293a08caffa202b7cbb2 (diff)
downloadnixpkgs-c066cc3c0b1f7f3c4b7e11ef330ce0980440273a.tar
nixpkgs-c066cc3c0b1f7f3c4b7e11ef330ce0980440273a.tar.gz
nixpkgs-c066cc3c0b1f7f3c4b7e11ef330ce0980440273a.tar.bz2
nixpkgs-c066cc3c0b1f7f3c4b7e11ef330ce0980440273a.tar.lz
nixpkgs-c066cc3c0b1f7f3c4b7e11ef330ce0980440273a.tar.xz
nixpkgs-c066cc3c0b1f7f3c4b7e11ef330ce0980440273a.tar.zst
nixpkgs-c066cc3c0b1f7f3c4b7e11ef330ce0980440273a.zip
nixos/tests/networking: Fix str literal comparison
Linter error:

  use ==/!= to compare constant literals (str, bytes, int, float, tuple)

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'nixos/tests/networking.nix')
-rw-r--r--nixos/tests/networking.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/networking.nix b/nixos/tests/networking.nix
index 1ea61f99a95..c8756207f27 100644
--- a/nixos/tests/networking.nix
+++ b/nixos/tests/networking.nix
@@ -511,7 +511,7 @@ let
             machine.sleep(10)
             residue = machine.succeed("ip tuntap list")
             assert (
-                residue is ""
+                residue == ""
             ), "Some virtual interface has not been properly cleaned:\n{}".format(residue)
       '';
     };
@@ -665,10 +665,10 @@ let
             ipv4Residue = machine.succeed("ip -4 route list dev eth0 | head -n-3").strip()
             ipv6Residue = machine.succeed("ip -6 route list dev eth0 | head -n-3").strip()
             assert (
-                ipv4Residue is ""
+                ipv4Residue == ""
             ), "The IPv4 routing table has not been properly cleaned:\n{}".format(ipv4Residue)
             assert (
-                ipv6Residue is ""
+                ipv6Residue == ""
             ), "The IPv6 routing table has not been properly cleaned:\n{}".format(ipv6Residue)
       '';
     };