Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3750221
D583.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D583.diff
View Options
diff --git a/DevCentralDockerTest.php b/DevCentralDockerTest.php
--- a/DevCentralDockerTest.php
+++ b/DevCentralDockerTest.php
@@ -16,8 +16,12 @@
}
public function testInitialized () {
- //TODO: test if .initialized file exists
- $this->markTestIncomplete("This test will have to be implemented after container update.");
+ $file = $this->container->exec("ls /opt/phabricator/.initialized");
+
+ $this->assertSame(
+ "/opt/phabricator/.initialized", $file,
+ ".initialized file is missing: that could mean the whole /usr/local/bin/setup-phabricator didn't run."
+ );
}
public function testProcesses () {
diff --git a/utils/DockerContainer.php b/utils/DockerContainer.php
--- a/utils/DockerContainer.php
+++ b/utils/DockerContainer.php
@@ -48,6 +48,7 @@
* @return string the command output
*/
public function exec ($command) {
- return `ssh $this->host docker exec $this->container $command`;
+ $output = `ssh $this->host docker exec $this->container $command`;
+ return trim($output);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 22:42 (20 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249891
Default Alt Text
D583.diff (1 KB)
Attached To
Mode
D583: DevCentral: check for .initialized
Attached
Detach File
Event Timeline
Log In to Comment