aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src
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/src
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/src')
-rw-r--r--lib/common_test/src/ct.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/common_test/src/ct.erl b/lib/common_test/src/ct.erl
index 778ea2e9e2..bfa7b25862 100644
--- a/lib/common_test/src/ct.erl
+++ b/lib/common_test/src/ct.erl
@@ -390,11 +390,7 @@ testcases(TestDir, Suite) ->
end.
make_and_load(Dir, Suite) ->
- EnvInclude =
- case os:getenv("CT_INCLUDE_PATH") of
- false -> [];
- CtInclPath -> string:lexemes(CtInclPath, [$:,$ ,$,])
- end,
+ EnvInclude = string:lexemes(os:getenv("CT_INCLUDE_PATH", ""), [$:,$ ,$,]),
StartInclude =
case init:get_argument(include) of
{ok,[Dirs]} -> Dirs;