From e7c78570ed66cd753add2664b7545d234c947b84 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 4 Apr 2021 13:05:39 +0200 Subject: feat(users/Profpatsch/writers): make testing default for rustSimple MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This way we don’t have to explicitely wrap the rust crate with a `testRustSimple`, but it will be done automatically, unless `doCheck` is set to `false`. Change-Id: I32a81821eeff620e7da57332b0873495bb85a843 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2841 Tested-by: BuildkiteCI Reviewed-by: Profpatsch Reviewed-by: sterni --- users/Profpatsch/writers/tests/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'users/Profpatsch/writers/tests') diff --git a/users/Profpatsch/writers/tests/default.nix b/users/Profpatsch/writers/tests/default.nix index a16f5fa1f972..4b28792f75a0 100644 --- a/users/Profpatsch/writers/tests/default.nix +++ b/users/Profpatsch/writers/tests/default.nix @@ -4,7 +4,6 @@ let inherit (depot.users.Profpatsch.writers) python3Lib python3 - testRustSimple rustSimple rustSimpleLib rustSimpleBin @@ -46,7 +45,7 @@ let ''); - rustTransitiveLib = testRustSimple (rustSimpleLib { + rustTransitiveLib = rustSimpleLib { name = "transitive"; } '' pub fn transitive(s: &str) -> String { @@ -64,7 +63,7 @@ let assert_eq!(transitive("foo").as_str(), "foo 1 2 3") } } - ''); + ''; rustTestLib = rustSimpleLib { name = "test_lib"; -- cgit 1.4.1