aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server/src/ts_install_cth.erl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-05-31 11:50:22 +0200
committerLukas Larsson <[email protected]>2013-05-31 11:50:32 +0200
commit9c7f77c78cb90130d9309ce8827f30287c38348f (patch)
tree62eaa0c446d249324457f088ff0c57b9761cc4ac /lib/test_server/src/ts_install_cth.erl
parentd56c2ab2dcb4aa9ca62a4a1bd1f614120c29ffd7 (diff)
downloadotp-9c7f77c78cb90130d9309ce8827f30287c38348f.tar.gz
otp-9c7f77c78cb90130d9309ce8827f30287c38348f.tar.bz2
otp-9c7f77c78cb90130d9309ce8827f30287c38348f.zip
Do not fail if there is no variables file
Diffstat (limited to 'lib/test_server/src/ts_install_cth.erl')
-rw-r--r--lib/test_server/src/ts_install_cth.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/test_server/src/ts_install_cth.erl b/lib/test_server/src/ts_install_cth.erl
index 9b6e10e7e2..a75cae3c9d 100644
--- a/lib/test_server/src/ts_install_cth.erl
+++ b/lib/test_server/src/ts_install_cth.erl
@@ -103,7 +103,9 @@ pre_init_per_suite(_Suite,Config,State) ->
end,
{add_node_name(Config, State), State}
- catch Error:Reason ->
+ catch error:{badmatch,{error,enoent}} ->
+ {add_node_name(Config, State), State};
+ Error:Reason ->
Stack = erlang:get_stacktrace(),
ct:pal("~p failed! ~p:{~p,~p}",[?MODULE,Error,Reason,Stack]),
{{fail,{?MODULE,{Error,Reason, Stack}}},State}