Skip to content

Commit 077fb34

Browse files
committed
dev-rust/autocfg: Fix broken test suite
Due to changes in rust-crate for rust-toolchain, this test can now be run. Additionally, examples are now stripped. Closes: #3 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Kent Fredric <[email protected]>
1 parent 0532450 commit 077fb34

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

dev-rust/autocfg/autocfg-0.1.6.ebuild

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 Gentoo Authors
1+
# Copyright 2019-2020 Gentoo Authors
22
# Distributed under the terms of the GNU General Public License v2
33

44
EAPI=7
@@ -13,13 +13,14 @@ LICENSE="|| ( MIT Apache-2.0 )"
1313
KEYWORDS="~amd64 ~x86"
1414
IUSE=""
1515

16+
src_prepare() {
17+
rm -vrf examples/ || die
18+
default
19+
}
1620
src_test() {
1721
# Default tests broken by invalid TARGET
1822
# https://github.com/gyakovlev/rust-dev-overlay/issues/3
1923
# # Tests write to ./target and fail if ./target doesn't exist
20-
# mkdir -p target
21-
# rust-crate_src_test
22-
23-
# Alternative to tests given tests fail
24-
ecargo build --all-targets
24+
mkdir -p target
25+
rust-crate_src_test
2526
}

0 commit comments

Comments
 (0)