116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
-
+
|
(include "keys.scm")
(include "items.scm")
(include "db.scm")
(include "configf.scm")
(include "process.scm")
(include "launch.scm")
(include "runs.scm")
;; (include "gui.scm")
(include "runconfig.scm")
(define *didsomething* #f)
;;======================================================================
;; Misc setup stuff
;;======================================================================
|
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
|
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
|
-
-
+
-
-
|
(if (not (setup-for-run))
(begin
(debug:print 0 "Failed to setup, exiting")
(exit 1)))
;; now can find our db
(set! db (open-db))
(change-directory work-area)
(let ((runconfigf (conc *toppath* "/runconfigs.config")))
(if (file-exists? runconfigf)
(set-run-config-vars db run-id)
(setup-env-defaults db runconfigf run-id)
(debug:print 0 "WARNING: You do not have a run config file: " runconfigf)))
;; environment overrides are done *before* the remaining critical envars.
(alist->env-vars env-ovrd)
(set-megatest-env-vars db run-id)
(set-item-env-vars itemdat)
(save-environment-as-files "megatest")
(test-set-meta-info db run-id test-name itemdat)
(test-set-status! db run-id test-name "REMOTEHOSTSTART" "n/a" itemdat (args:get-arg "-m"))
|