summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2020-03-31 18:47:20 +0300
committerMichael Klishin <michael@clojurewerkz.org>2020-03-31 18:47:45 +0300
commitf80500bd6b5e437683c8bbe2f702d4add2acc96c (patch)
treeddc5f7f25dad17f97989918b58b37f5b476d2538
parent1e9a5107579347549ef4e88a32826386869a3e65 (diff)
downloadrabbitmq-server-git-f80500bd6b5e437683c8bbe2f702d4add2acc96c.tar.gz
unit_log_management_SUITE: handle erofs returned on macOS
as opposed to eacces
-rw-r--r--test/unit_log_management_SUITE.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/unit_log_management_SUITE.erl b/test/unit_log_management_SUITE.erl
index 8f7a069e37..f748bda8c2 100644
--- a/test/unit_log_management_SUITE.erl
+++ b/test/unit_log_management_SUITE.erl
@@ -34,7 +34,7 @@ all() ->
groups() ->
[
{non_parallel_tests, [], [
- log_management, %% Check log files.
+ log_management,
log_file_initialised_during_startup,
log_file_fails_to_initialise_during_startup,
externally_rotated_logs_are_automatically_reopened
@@ -248,6 +248,12 @@ log_file_fails_to_initialise_during_startup(Config) ->
Config, 0,
?MODULE, log_file_fails_to_initialise_during_startup1,
[Config, NonWritableDir]);
+ %% macOS, "read only volume"
+ {error, erofs} ->
+ passed = rabbit_ct_broker_helpers:rpc(
+ Config, 0,
+ ?MODULE, log_file_fails_to_initialise_during_startup1,
+ [Config, NonWritableDir]);
{ok, Fd} ->
%% If the supposedly non-writable directory is writable
%% (e.g. we are running the testsuite on Windows as