Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3749518
D1817.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
D1817.diff
View Options
diff --git a/DevCentralDockerTest.php b/DevCentralDockerTest.php
--- a/DevCentralDockerTest.php
+++ b/DevCentralDockerTest.php
@@ -31,12 +31,24 @@
'nginx: master process',
'nginx: worker process',
'php-fpm: master process',
- 'PhabricatorTaskmasterDaemon',
- 'PhabricatorBot',
+ 'phd-daemon',
];
foreach ($expectedProcesses as $expectedProcess) {
$this->assertContains($expectedProcess, $processes, "The process $expectedProcess isn't currently launched.");
}
}
+
+ public function testPhabricatorDaemons () {
+ $daemons = $this->container->exec("/opt/phabricator/bin/phd status");
+
+ $expectedDaemons = [
+ 'PhabricatorRepositoryPullLocalDaemon',
+ 'PhabricatorTaskmasterDaemon',
+ ];
+
+ foreach ($expectedDaemons as $expectedDaemon) {
+ $this->assertContains($expectedDaemon, $daemons, "The daemon $expectedDaemon isn't currently launched.");
+ }
+ }
}
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@
ENV_FOR_TEST_FULL= \
DOCKER_ACCESS=1 \
- DOCKER_HOST=dwellers.nasqueron.org \
+ DOCKER_HOST=equatower.nasqueron.org \
test:
phpunit --log-junit build/phpunit.xml -v .
diff --git a/utils/DockerContainer.php b/utils/DockerContainer.php
--- a/utils/DockerContainer.php
+++ b/utils/DockerContainer.php
@@ -44,7 +44,7 @@
* @return string the command output
*/
public function exec ($command) : string {
- $output = `ssh $this->host docker exec $this->container $command`;
+ $output = `ssh $this->host sudo docker exec $this->container $command`;
return trim($output);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 15:53 (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249594
Default Alt Text
D1817.diff (1 KB)
Attached To
Mode
D1817: Update DevCentral tests
Attached
Detach File
Event Timeline
Log In to Comment