Megatest

Check-in [4496ba9a2a]
Login
Overview
Comment:fix for typo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.60
Files: files | file ages | folders
SHA1: 4496ba9a2ad784175f807a453a553b9030024872
User & Date: mrwellan on 2014-10-21 14:02:27
Other Links: branch diff | manifest | tags
Context
2014-10-21
14:18
fixed wrong use of double quotes check-in: 17cd0fbe3e user: mrwellan tags: v1.60, v1.6004
14:02
fix for typo check-in: 4496ba9a2a user: mrwellan tags: v1.60
2014-10-20
22:48
Added exception handler to stats gathering check-in: 87aa55e5d2 user: matt tags: v1.60
Changes

Modified tasks.scm from [5a2500fe53] to [74341b76b3].

644
645
646
647
648
649
650
651

652
653

654
655
656
657
658
659
660
644
645
646
647
648
649
650

651
652

653
654
655
656
657
658
659
660







-
+

-
+







			(debug:print 0 " message: " ((condition-property-accessor 'exn 'message) exn))
			#t)
		      (process-signal (string->number pid) signal/int)
		      (thread-sleep! 5)
		      (process-signal (string->number pid) signal/kill)))
		   ;;  (call-with-environment-variables
		   (let ((old-targethost (getenv "TARGETHOST")))
		     (set-environment-variable "TARGETHOST" hostname)
		     (setenv "TARGETHOST" hostname)
		     (system (conc "nbfake " kill " " pid))
		     (if old-targethost (set-environment-variable "TARGETHOST" old-targethost)))))
		     (if old-targethost (setenv "TARGETHOST" old-targethost)))))
	     (debug:print 0 "ERROR: no record or improper record for " target "/" run-name " in tasks_queue in monitor.db"))))
     records)))


;;======================================================================
;; The routines to process tasks
;;======================================================================

tests/installall/config/megatest.config.dat became a symlink with target [736a5da885].

tests/installall/config/runconfigs.config.dat became a symlink with target [3b8f260acb].

Modified utils/nbfake from [99a526d022] to [e5bec056c7].

1
2
3
4

5
6
7
8
9

10
11
12
13
14
15
16
17

18
19

20
1
2
3
4
5
6
7
8
9

10
11
12
13
14
15
16
17

18
19

20
21




+




-
+







-
+

-
+

#!/bin/bash

# Can't always trust $PWD
CURRWD=`pwd`

if [[ $TARGETHOST_LOGF == "" ]]; then
    TARGETHOST_LOGF=NBFAKE-`date +%GWW%V.%u_%T`
fi
echo "#======================================================================"
echo "# NBFAKE Running command:"
echo "# NBFAKE Logging command to $TARGETHOST_LOGF"
echo "#     \"$*\""
echo "#======================================================================"

if [[ $TARGETHOST == ""  ]]; then
  unset TARGETHOST
  TARGETHOST_LOGF_TEMP=$TARGETHOST_LOGF
  unset TARGETHOST_LOGF
  sh -c "cd $CURRWD;export DISPLAY=$DISPLAY; export PATH=$PATH; nohup $* > $TARGETHOST_LOGF_TEMP 2>&1 &"
  sh -c "cd $CURRWD;export DISPLAY=$DISPLAY; export PATH=$PATH; nohup $* >> $TARGETHOST_LOGF_TEMP 2>&1 &"
else
  ssh -n -f $TARGETHOST "sh -c \"cd $CURRWD;export DISPLAY=$DISPLAY; export PATH=$PATH; nohup $* > $TARGETHOST_LOGF 2>&1 &\""
  ssh -n -f $TARGETHOST "sh -c \"cd $CURRWD;export DISPLAY=$DISPLAY; export PATH=$PATH; nohup $* >> $TARGETHOST_LOGF 2>&1 &\""
fi