[Nostromo] Refactor FS Tasks flagging system

This commit is contained in:
Andrés Montañez
2017-02-11 00:30:49 -03:00
parent 2c087ab477
commit f6886f3d28
9 changed files with 131 additions and 65 deletions
+3 -6
View File
@@ -29,14 +29,13 @@ class ChangeModeTest extends TestCase
$task->setRuntime($runtime);
$this->assertContains('a.txt', $task->getDescription());
$this->assertContains('-R', $task->getDescription());
$this->assertContains('o+w', $task->getDescription());
$task->execute();
$ranCommands = $runtime->getRanCommands();
$testCase = array(
0 => 'chmod -R o+w a.txt',
0 => 'chmod -R o+w "a.txt"',
);
// Check total of Executed Commands
@@ -59,14 +58,13 @@ class ChangeModeTest extends TestCase
$task->setRuntime($runtime);
$this->assertContains('a.txt', $task->getDescription());
$this->assertNotContains('-R', $task->getDescription());
$this->assertContains('o+w', $task->getDescription());
$task->execute();
$ranCommands = $runtime->getRanCommands();
$testCase = array(
0 => 'chmod o+w a.txt',
0 => 'chmod o+w "a.txt"',
);
// Check total of Executed Commands
@@ -89,14 +87,13 @@ class ChangeModeTest extends TestCase
$task->setRuntime($runtime);
$this->assertContains('test.txt', $task->getDescription());
$this->assertContains('-R', $task->getDescription());
$this->assertContains('o+w', $task->getDescription());
$task->execute();
$ranCommands = $runtime->getRanCommands();
$testCase = array(
0 => 'chmod -R o+w test.txt',
0 => 'chmod -R o+w "test.txt"',
);
// Check total of Executed Commands