Skip to content

Commit

Permalink
Seperate test state dir
Browse files Browse the repository at this point in the history
  • Loading branch information
nebulous committed Feb 19, 2015
1 parent 8047ab6 commit 074ba56
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion infinitude
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use Cache::FileDump;
use XML::Simple::Minded;

# -------------- Config ------------------------
my $config = {
our $config ||= {
wunderground_key => '', #Weather underground API key
store_base => 'state', #State storage base directory
serial_tty => '/dev/ttyUSB0', #RS485 serial tty interface
Expand Down
5 changes: 5 additions & 0 deletions t/system-post.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ use Test::Mojo;
# Include application
use FindBin;
use lib "$FindBin::Bin/../lib";

$main::config = {
app_secret => 'testing',
store_base => 't/test_store'
};
require "$FindBin::Bin/../infinitude";

use XML::Simple::Minded;
Expand Down
1 change: 1 addition & 0 deletions t/test_store/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
State directory for tests.

0 comments on commit 074ba56

Please sign in to comment.