Skip to content

Commit

Permalink
Updated 00CheckTestDirectoryStructure.t
Browse files Browse the repository at this point in the history
removed test for .testdir file as these have been removed. Updated the test to use a -d check that directory exists instead.
  • Loading branch information
Bas-Man committed May 7, 2018
1 parent ae8d745 commit da146f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/00CheckTestDirectorStructures.t
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ my $sourceDir = getcwd . '/t/test-data/';

my $ShowDirectory = getcwd . '/t/TV Shows/';

my $filename = $sourceDir . ".testdir";
my $filename = $sourceDir;

ok (-e $filename, 'Show Source Directory path is valid') or BAIL_OUT("test-data is not valid.\n");
ok (-d $filename, 'Show Source Directory path is valid') or BAIL_OUT("test-data is not valid.\n");

$filename = $ShowDirectory . ".testdir";
$filename = $ShowDirectory;

ok (-e $filename, 'TV Show Directory path is valid') or BAIL_OUT("TV Show is not valid.\n");
ok (-d $filename, 'TV Show Directory path is valid') or BAIL_OUT("TV Show is not valid.\n");

done_testing();

0 comments on commit da146f7

Please sign in to comment.