tmc-cli: fix tests with Darwin sandbox

+13
+13
pkgs/by-name/tm/tmc-cli/package.nix
··· 1 1 { 2 2 lib, 3 + stdenv, 3 4 fetchFromGitHub, 4 5 rustPlatform, 5 6 writableTmpDirAsHomeHook, ··· 23 24 writableTmpDirAsHomeHook 24 25 ]; 25 26 27 + checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [ 28 + # When sandboxing, "Attempted to create a NULL object." 29 + # https://github.com/mullvad/system-configuration-rs/pull/59 may fix. 30 + "--skip=commands::courses::tests::list_courses_with_client_test" 31 + # Same 32 + "--skip=all_integration_tests" 33 + # When sandboxing, "Lazy instance has previously been poisoned." 34 + "--skip=commands::exercises::tests::list_exercises_with_client_test" 35 + ]; 36 + 26 37 nativeInstallCheckInputs = [ 27 38 versionCheckHook 28 39 ]; 29 40 doInstallCheck = true; 30 41 versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}"; 31 42 versionCheckProgramArg = "--version"; 43 + 44 + __darwinAllowLocalNetworking = true; 32 45 33 46 meta = { 34 47 description = "CLI for using the TestMyCode programming assignment evaluator";