From da146f7d9d0a4dd1003e739cbd8385c1313e0503 Mon Sep 17 00:00:00 2001 From: Adam Spann Date: Mon, 7 May 2018 22:40:53 +0900 Subject: [PATCH] Updated 00CheckTestDirectoryStructure.t removed test for .testdir file as these have been removed. Updated the test to use a -d check that directory exists instead. --- t/00CheckTestDirectorStructures.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/00CheckTestDirectorStructures.t b/t/00CheckTestDirectorStructures.t index d8248bd..df83239 100644 --- a/t/00CheckTestDirectorStructures.t +++ b/t/00CheckTestDirectorStructures.t @@ -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();