Skip to content

Commit

Permalink
Do not rely on WebAPI to find home - require and use an harmless class (
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Sep 15, 2016
1 parent 0c11d4c commit 67abfeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion script/openqa-scheduler
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ use Mojo::Home;
BEGIN {
unshift @INC, "$FindBin::Bin/../lib";
if (!$ENV{MOJO_HOME}) {
require OpenQA::Utils;
# overwrite detect as it misjudges our sub apps
$ENV{MOJO_HOME} = Mojo::Home->new->detect('OpenQA::WebAPI');
$ENV{MOJO_HOME} = Mojo::Home->new->detect('OpenQA::Utils');
}
}

Expand Down
3 changes: 2 additions & 1 deletion script/openqa-websockets
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ use Mojo::Home;
BEGIN {
unshift @INC, "$FindBin::Bin/../lib";
if (!$ENV{MOJO_HOME}) {
require OpenQA::Utils;
# overwrite detect as it misjudges our sub apps
$ENV{MOJO_HOME} = Mojo::Home->new->detect('OpenQA::WebAPI');
$ENV{MOJO_HOME} = Mojo::Home->new->detect('OpenQA::Utils');
}
}

Expand Down

0 comments on commit 67abfeb

Please sign in to comment.