Skip to content

Commit 2949d00

Browse files
author
Nils Langner
committed
changed permissions, add debug output
1 parent 076533d commit 2949d00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

module/VisualCeption.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private function init ()
6262

6363
if (! is_dir($this->referenceImageDir)) {
6464
$this->debug("Creating directory: $this->referenceImageDir");
65-
mkdir($this->referenceImageDir, 0666, true);
65+
mkdir($this->referenceImageDir, 0777, true);
6666
}
6767
}
6868

@@ -218,6 +218,7 @@ private function compare ($identifier)
218218
$expectedImagePath = $this->getExpectedScreenshotPath($identifier);
219219

220220
if (! file_exists($expectedImagePath)) {
221+
$this->debug("Copying image (from $currentImagePath to $expectedImagePath");
221222
copy($currentImagePath, $expectedImagePath);
222223
return array (null, 0);
223224
} else {

0 commit comments

Comments
 (0)