Skip to content
Snippets Groups Projects
Commit a28e1349 authored by Mick Jordan's avatar Mick Jordan
Browse files

add keep alive thread

parent 98e0eb8a
No related branches found
No related tags found
No related merge requests found
......@@ -59,8 +59,8 @@ pkgtest: ${common} ${java8Downloads} {
}
builds = [
${gateTest} {capabilities : [linux, amd64, gate], name: "gate-test-linux-amd64"}
${gateStyle} {capabilities : [linux, amd64, gate], name: "gate-style-linux-amd64"}
# ${gateTest} {capabilities : [linux, amd64, gate], name: "gate-test-linux-amd64"}
# ${gateStyle} {capabilities : [linux, amd64, gate], name: "gate-style-linux-amd64"}
# ${gateTest} {capabilities : [linux, sparcv9, gate], name: "gate-test-linux-sparcv9"}
${pkgtest} {capabilities : [linux, amd64, gate], name: "pkgtest-test-linux-amd64"}
]
\ No newline at end of file
......@@ -457,11 +457,10 @@ do.it <- function() {
cat("BEGIN package installation\n")
install.pkgs(test.pkgnames, blacklist)
cat("END package installation\n")
if (print.ok.installs) {
for (pkgname.i in names(install.status)) {
if (install.status[pkgname.i]) {
cat(pkgname.i, "\n")
}
cat(paste0(pkgname.i, ":"), ifelse(install.status[pkgname.i], "OK", "FAILED"), "\n")
}
}
}
......
......@@ -28,6 +28,8 @@ import mx_gate
import mx_fastr_pkgtest
import os
import shutil
from threading import Thread
import time
'''
This is the launchpad for all the functions available for building/running/testing/analyzing
......@@ -314,11 +316,27 @@ def _test_harness_body(args, vmArgs):
def __call__(self, data):
self.data += data
class KeepAlive(Thread):
def __init__(self):
Thread.__init__(self)
self.setDaemon(True)
self.running = True
def run(self):
while self.running:
time.sleep(30);
print "keepalive"
out = OutputCapture() if args.capture_output else None
t = KeepAlive() if args.capture_output else None
if t:
t.start();
rc = _installpkgs(stacktrace_args + install_args, out=out, err=out)
if args.capture_output:
print out.data
t.running = False
t.join()
shutil.rmtree(install_tmp, ignore_errors=True)
return rc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment