Megatest

Check-in [55f3c8af7f]
Login
Overview
Comment:For running local do not use ssh to run pstree
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.65-side2
Files: files | file ages | folders
SHA1: 55f3c8af7f87b4a2552e8f02481edd5e5bbcf804
User & Date: mrwellan on 2020-10-12 10:19:28
Other Links: branch diff | manifest | tags
Context
2020-10-12
13:06
Added in the query-rest stuff. check-in: 0e1320be35 user: mrwellan tags: v1.65-side2
10:19
For running local do not use ssh to run pstree check-in: 55f3c8af7f user: mrwellan tags: v1.65-side2
10:18
Safe vector access in rmt. check-in: 58bb6d997a user: mrwellan tags: v1.65-side2
Changes

Modified launch.scm from [d0067277fa] to [d79c56de3e].

769
770
771
772
773
774
775


776

777
778
779
780
781
782
783
769
770
771
772
773
774
775
776
777

778
779
780
781
782
783
784
785







+
+
-
+







                 (item-path (vector-ref running-test 11)))
			       	(debug:print 0 *default-log-port* "test " test-name "/" item-path " not completed")
              (if (not (null? tal))
				  (loop (car tal) (cdr tal)))))))))))        
 
(define (launch:is-test-alive host pid)
  (if (and host pid (not (equal? host "n/a")))
      (let* ((is-local (equal? host (get-host-name)))
	     (ssh-cmd   (if is-local " " (conc "ssh " host " ")))
      (let* ((cmd (conc "ssh " host " pstree -A " pid))
	     (cmd (conc ssh-cmd "pstree -A " pid))
	     (output (with-input-from-pipe cmd read-lines)))
	(debug:print 2 *default-log-port* "Running " cmd " received " output)
	(if (eq? (length output) 0)
	   #f
	   #t))
      #t))