- print >> node.logfile, "Running Node Tests"
-
- # Create tests archive
- (archive_filename, archive_filepath) = self.config.archive_node_tests()
- archive_dir = archive_filename.split('.tar')[0]
-
- # Copy tests archive to plc's webroot
- plc.scp_to_webroot("%(archive_filepath)s" % locals())
-
- # Download url onto node
- url = "http://%(plc_ip)s/%(archive_filename)s" % locals()
- node.wget(url, tests_dir)
-
- # Extract tests archive
- tarx_cmd = "cd %(tests_dir)s && tar -xzm -f %(archive_filename)s" % locals()
- print >> node.logfile, tarx_cmd
- node.popen(tarx_cmd)
-
- # Make tests executable
- # XX Should find a better way to do this
- chmod_cmd = "cd %s/%s && chmod 755 %s " % (tests_dir, archive_dir, " ".join(node_tests) )
- print >> node.logfile, chmod_cmd
- node.popen(chmod_cmd)
-