فهرست منبع

Tests: settings the blast path so Travis CI knows where to look.

Lacey Sanderson 6 سال پیش
والد
کامیت
df77a86ea0
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      tests/BlastJobTest.php

+ 5 - 0
tests/BlastJobTest.php

@@ -23,6 +23,11 @@ class BlastJobTest extends TripalTestCase {
     $this->assertFileExists($blast_path . 'blastn', 'NCBI blastn command not found. Expecting it here: '.$blast_path.'blastn');
     $this->assertFileExists($blast_path . 'blast_formatter', 'NCBI blast_formatter command not found. Expecting it here: '.$blast_path.'blast_formatter');
 
+    // Make sure the path to blast is set!
+    if ($blast_path == '/usr/local/bin/') {
+      variable_set('blast_path', '/usr/local/bin/');
+    }
+
     // Retrieve paths to files.
     $module_path = DRUPAL_ROOT . '/' . drupal_get_path('module','blast_ui');
     $file_path = DRUPAL_ROOT . '/' . variable_get('file_public_path', conf_path() . '/files');