From f61966403abdbbb142bcf9263a7a46ae196c5fef Mon Sep 17 00:00:00 2001 From: Collins Abitekaniza Date: Mon, 26 Nov 2018 18:12:11 +0300 Subject: [PATCH] assert for non-release artifacts --- tests/testsuite/clean.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/testsuite/clean.rs b/tests/testsuite/clean.rs index 9e03bd11655..dc2ac57c4df 100644 --- a/tests/testsuite/clean.rs +++ b/tests/testsuite/clean.rs @@ -118,7 +118,11 @@ fn clean_release() { ", ).run(); + p.cargo("build").run(); + p.cargo("clean").arg("--release").run(); + assert!(p.build_dir().is_dir()); + assert!(p.build_dir().join("debug").is_dir()); assert!(!p.build_dir().join("release").is_dir()); }