aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test
diff options
context:
space:
mode:
authorPeter Lemenkov <[email protected]>2018-09-26 13:17:48 +0300
committerPeter Lemenkov <[email protected]>2018-09-26 13:19:15 +0300
commitbcab56a13fafdf8db9997dd4453812e66ae294e7 (patch)
tree9ce0c4aa5e8cb45fb8af75cb66c6d72b3db19782 /lib/common_test/test
parent77a9445af06fec32f267d9dcb52be652a8c0fdb3 (diff)
downloadotp-bcab56a13fafdf8db9997dd4453812e66ae294e7.tar.gz
otp-bcab56a13fafdf8db9997dd4453812e66ae294e7.tar.bz2
otp-bcab56a13fafdf8db9997dd4453812e66ae294e7.zip
Use os:getenv/2 where possible
Signed-off-by: Peter Lemenkov <[email protected]>
Diffstat (limited to 'lib/common_test/test')
-rw-r--r--lib/common_test/test/ct_config_SUITE.erl12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/common_test/test/ct_config_SUITE.erl b/lib/common_test/test/ct_config_SUITE.erl
index 5ffc735d6a..ec5278b96d 100644
--- a/lib/common_test/test/ct_config_SUITE.erl
+++ b/lib/common_test/test/ct_config_SUITE.erl
@@ -211,18 +211,12 @@ reformat_events(Events, EH) ->
%%% Test related to 'localtime' will often fail if the test host is
%%% time warping, so let's just skip the 'dynamic' tests then.
skip_dynamic() ->
- case os:getenv("TS_EXTRA_PLATFORM_LABEL") of
- TSExtraPlatformLabel when is_list(TSExtraPlatformLabel) ->
- case string:find(TSExtraPlatformLabel,"TimeWarpingOS") of
- nomatch -> false;
- _ -> true
- end;
- _ ->
- false
+ case string:find(os:getenv("TS_EXTRA_PLATFORM_LABEL", ""), "TimeWarpingOS") of
+ nomatch -> false;
+ _ -> true
end.
-
%%%-----------------------------------------------------------------
%%% TEST EVENTS
%%%-----------------------------------------------------------------