Commits

Cameron Hummels committed 43883f4

Making it so enzo.exe doesn't get copied to each individual test directory, just a symlink of the original enzo.exe.

Comments (1)

Files changed (1)

run/test_runner.py

 import imp
 import optparse
 import os.path
+import os
 import shutil
 import signal
 import subprocess
                 shutil.copy(os.path.join(self.test_dir, version_filename),
                             os.path.join(self.run_dir, version_filename))
                 if self.exe_path is not None:
-                    shutil.copy(self.exe_path, os.path.join(self.run_dir, self.local_exe))
+                    os.symlink(self.exe_path, os.path.join(self.run_dir, self.local_exe))
             else:
                 print "%s already exists. Skipping directory." % self.test_data['name']
         else:
             shutil.copy(os.path.join(self.test_dir, version_filename),
                         os.path.join(self.run_dir, version_filename))
             if self.exe_path is not None:
-                shutil.copy(self.exe_path, os.path.join(self.run_dir, self.local_exe))
+                os.symlink(self.exe_path, os.path.join(self.run_dir, self.local_exe))
 
     def _create_run_script(self):
         template_path = os.path.join(os.path.dirname(__file__),