Here's a patch with some code cleanup I needed/ran into while working on #1277484: --no-core option for archive-dump

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Status: Needs review » Fixed

Committed except for line below since it adds no useful information that the ssertion does not already provide. Those messages should be omitted when possible (this is a newish policy).

-    $this->execute('test -f ' . $untar_dest . '/MANIFEST.ini');
+    $this->assertFileExists($untar_dest . '/MANIFEST.ini', 'MANIFEST.ini should exist');
helmo’s picture

Thanks, I'll remove the message parameter from my new patch in #1277484: --no-core option for archive-dump

Changing it to use assertFileExists instead of 'test' still seems like a good idea.

moshe weitzman’s picture

I just changed two lines to use assertFileExists(). Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.