rebar3: skip failing tests on M1 chip
This commit is contained in:
parent
8a815af428
commit
d75b67bfa4
|
@ -39,6 +39,14 @@ let
|
|||
HOME=. escript bootstrap
|
||||
'';
|
||||
|
||||
|
||||
patches = []
|
||||
# Skips test that can write outside the designated tmp directory, potentially resulting in build failures
|
||||
# due to file ownership issues if ran without sandbox (eg. Mac M1 default). This patch can be Removed when
|
||||
# rebar3 releases with the following commit:
|
||||
# https://github.com/erlang/rebar3/commit/11055384dbd5bf7d181bca83a33b0e100275ff21
|
||||
++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ ./tmp-tests-skip.patch ];
|
||||
|
||||
checkPhase = ''
|
||||
HOME=. escript ./rebar3 ct
|
||||
'';
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
diff --git a/test/rebar_file_utils_SUITE.erl b/test/rebar_file_utils_SUITE.erl
|
||||
index d771a82..05cfbf7 100644
|
||||
--- a/test/rebar_file_utils_SUITE.erl
|
||||
+++ b/test/rebar_file_utils_SUITE.erl
|
||||
@@ -34,13 +34,11 @@
|
||||
|
||||
all() ->
|
||||
[{group, tmpdir},
|
||||
- {group, reset_dir},
|
||||
{group, mv},
|
||||
path_from_ancestor,
|
||||
canonical_path,
|
||||
absolute_path,
|
||||
normalized_path,
|
||||
- resolve_link,
|
||||
split_dirname,
|
||||
mv_warning_is_ignored].
|
Loading…
Reference in a new issue