diff options
| author | Hans Bolinder <[email protected]> | 2018-10-08 08:16:02 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-10-08 08:16:02 +0200 |
| commit | 870f4f4518846243f1ac2b2aefe36aa92dc366a5 (patch) | |
| tree | c1adec003b90cba8c3be0c6f9fb91aa471a288f2 /lib/common_test/src | |
| parent | e2a1ec914d9bec9f9310669df877601eed2f808d (diff) | |
| parent | bcab56a13fafdf8db9997dd4453812e66ae294e7 (diff) | |
| download | otp-870f4f4518846243f1ac2b2aefe36aa92dc366a5.tar.gz otp-870f4f4518846243f1ac2b2aefe36aa92dc366a5.tar.bz2 otp-870f4f4518846243f1ac2b2aefe36aa92dc366a5.zip | |
Merge pull request #1964 from lemenkov/more_os_getenv_2
Use os:getenv/2 where possible
Diffstat (limited to 'lib/common_test/src')
| -rw-r--r-- | lib/common_test/src/ct.erl | 6 |
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; |
