Page MenuHomeDevCentral

D583.diff
No OneTemporary

D583.diff

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

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)

Event Timeline