diff options
author | Jan Hrnko <jan.hrnko@satoshilabs.com> | 2019-11-06 12:40:43 +0100 |
---|---|---|
committer | Jan Hrnko <jan.hrnko@satoshilabs.com> | 2019-11-06 12:40:43 +0100 |
commit | c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8 (patch) | |
tree | e84742a4b96640fa32fc1f94685b2500c3111572 /nixos/tests/telegraf.nix | |
parent | 8060e760374d92a7ddc633bf2523a0cbec033178 (diff) | |
download | nixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.tar nixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.tar.gz nixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.tar.bz2 nixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.tar.lz nixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.tar.xz nixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.tar.zst nixpkgs-c0c04737ed6279fb4e1a4640b5120c1ba32cb2c8.zip |
nixos/telegraf: port test to python
Diffstat (limited to 'nixos/tests/telegraf.nix')
-rw-r--r-- | nixos/tests/telegraf.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/tests/telegraf.nix b/nixos/tests/telegraf.nix index 6776f8d8c37..73f741b1135 100644 --- a/nixos/tests/telegraf.nix +++ b/nixos/tests/telegraf.nix @@ -1,4 +1,4 @@ -import ./make-test.nix ({ pkgs, ...} : { +import ./make-test-python.nix ({ pkgs, ...} : { name = "telegraf"; meta = with pkgs.stdenv.lib.maintainers; { maintainers = [ mic92 ]; @@ -22,9 +22,9 @@ import ./make-test.nix ({ pkgs, ...} : { }; testScript = '' - startAll; + start_all() - $machine->waitForUnit("telegraf.service"); - $machine->waitUntilSucceeds("grep -q example /tmp/metrics.out"); + machine.wait_for_unit("telegraf.service") + machine.wait_until_succeeds("grep -q example /tmp/metrics.out") ''; }) |