tmc-cli: fix tests with Darwin sandbox
This commit is contained in:
parent
18916ed208
commit
59dd457425
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
writableTmpDirAsHomeHook,
|
writableTmpDirAsHomeHook,
|
||||||
@ -23,6 +24,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
writableTmpDirAsHomeHook
|
writableTmpDirAsHomeHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
|
# When sandboxing, "Attempted to create a NULL object."
|
||||||
|
# https://github.com/mullvad/system-configuration-rs/pull/59 may fix.
|
||||||
|
"--skip=commands::courses::tests::list_courses_with_client_test"
|
||||||
|
# Same
|
||||||
|
"--skip=all_integration_tests"
|
||||||
|
# When sandboxing, "Lazy instance has previously been poisoned."
|
||||||
|
"--skip=commands::exercises::tests::list_exercises_with_client_test"
|
||||||
|
];
|
||||||
|
|
||||||
nativeInstallCheckInputs = [
|
nativeInstallCheckInputs = [
|
||||||
versionCheckHook
|
versionCheckHook
|
||||||
];
|
];
|
||||||
@ -30,6 +41,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
|||||||
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
|
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
|
||||||
versionCheckProgramArg = "--version";
|
versionCheckProgramArg = "--version";
|
||||||
|
|
||||||
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "CLI for using the TestMyCode programming assignment evaluator";
|
description = "CLI for using the TestMyCode programming assignment evaluator";
|
||||||
homepage = "https://github.com/rage/tmc-cli-rust";
|
homepage = "https://github.com/rage/tmc-cli-rust";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user