nixosTests.noto-fonts: migrate to runTest (#401188)

authored by Gaétan Lepage and committed by GitHub 6fc2f2e4 076d48d2

+30 -30
+1 -1
nixos/tests/all-tests.nix
··· 948 948 nomad = runTest ./nomad.nix; 949 949 non-default-filesystems = handleTest ./non-default-filesystems.nix { }; 950 950 non-switchable-system = runTest ./non-switchable-system.nix; 951 - noto-fonts = handleTest ./noto-fonts.nix { }; 951 + noto-fonts = runTest ./noto-fonts.nix; 952 952 noto-fonts-cjk-qt-default-weight = handleTest ./noto-fonts-cjk-qt-default-weight.nix { }; 953 953 novacomd = handleTestOn [ "x86_64-linux" ] ./novacomd.nix { }; 954 954 npmrc = handleTest ./npmrc.nix { };
+29 -29
nixos/tests/noto-fonts.nix
··· 1 - import ./make-test-python.nix ( 2 - { pkgs, lib, ... }: 3 - { 4 - name = "noto-fonts"; 5 - meta.maintainers = with lib.maintainers; [ 6 - nickcao 7 - midchildan 8 - ]; 1 + { lib, ... }: 2 + { 3 + name = "noto-fonts"; 4 + meta.maintainers = with lib.maintainers; [ 5 + nickcao 6 + midchildan 7 + ]; 9 8 10 - nodes.machine = { 9 + nodes.machine = 10 + { pkgs, ... }: 11 + { 11 12 imports = [ ./common/x11.nix ]; 12 13 environment.systemPackages = [ pkgs.gedit ]; 13 14 fonts = { ··· 36 37 }; 37 38 }; 38 39 39 - testScript = 40 - # extracted from http://www.clagnut.com/blog/2380/ 41 - let 42 - testText = builtins.toFile "test.txt" '' 43 - the quick brown fox jumps over the lazy dog 44 - 視野無限廣,窗外有藍天 45 - Eĥoŝanĝo ĉiuĵaŭde. 46 - いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす 47 - 다람쥐 헌 쳇바퀴에 타고파 48 - 中国智造,慧及全球 49 - ''; 50 - in 51 - '' 52 - machine.wait_for_x() 53 - machine.succeed("gedit ${testText} >&2 &") 54 - machine.wait_for_window(".* - gedit") 55 - machine.sleep(10) 56 - machine.screenshot("screen") 40 + testScript = 41 + # extracted from http://www.clagnut.com/blog/2380/ 42 + let 43 + testText = builtins.toFile "test.txt" '' 44 + the quick brown fox jumps over the lazy dog 45 + 視野無限廣,窗外有藍天 46 + Eĥoŝanĝo ĉiuĵaŭde. 47 + いろはにほへと ちりぬるを わかよたれそ つねならむ うゐのおくやま けふこえて あさきゆめみし ゑひもせす 48 + 다람쥐 헌 쳇바퀴에 타고파 49 + 中国智造,慧及全球 57 50 ''; 58 - } 59 - ) 51 + in 52 + '' 53 + machine.wait_for_x() 54 + machine.succeed("gedit ${testText} >&2 &") 55 + machine.wait_for_window(".* - gedit") 56 + machine.sleep(10) 57 + machine.screenshot("screen") 58 + ''; 59 + }