git.iko.soy/typeable/nixpkgs
on master help sign in
rebar3: skip failing tests on M1 chip
commitd75b67bfa4bb2dd7abad55a79426788ba2628f9f authorTomek Mańko <tomek.manko@railgun-solutions.com> dateTue 13 Jul 2021, 09:31 (5 years ago) parent8a815af
2 files changed+25
pkgs/development/tools/build-managers/rebar3/default.nix+8 pkgs/development/tools/build-managers/rebar3/tmp-tests-skip.patch+17
pkgs/development/tools/build-managers/rebar3/default.nix+8
@@ -39,6 +39,14 @@ let
3939 HOME=. escript bootstrap
4040 '';
4141
42+
43+ patches = []
44+ # Skips test that can write outside the designated tmp directory, potentially resulting in build failures
45+ # due to file ownership issues if ran without sandbox (eg. Mac M1 default). This patch can be Removed when
46+ # rebar3 releases with the following commit:
47+ # https://github.com/erlang/rebar3/commit/11055384dbd5bf7d181bca83a33b0e100275ff21
48+ ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ ./tmp-tests-skip.patch ];
49+
4250 checkPhase = ''
4351 HOME=. escript ./rebar3 ct
4452 '';
pkgs/development/tools/build-managers/rebar3/tmp-tests-skip.patchnew file+17
@@ -0,0 +1,17 @@
1+diff --git a/test/rebar_file_utils_SUITE.erl b/test/rebar_file_utils_SUITE.erl
2+index d771a82..05cfbf7 100644
3+--- a/test/rebar_file_utils_SUITE.erl
4++++ b/test/rebar_file_utils_SUITE.erl
5+@@ -34,13 +34,11 @@
6+
7+ all() ->
8+ [{group, tmpdir},
9+- {group, reset_dir},
10+ {group, mv},
11+ path_from_ancestor,
12+ canonical_path,
13+ absolute_path,
14+ normalized_path,
15+- resolve_link,
16+ split_dirname,
17+ mv_warning_is_ignored].