Page MenuHomeDevCentral

D583.id1410.diff
No OneTemporary

D583.id1410.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 24, 08:07 (9 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259804
Default Alt Text
D583.id1410.diff (1 KB)

Event Timeline