Overview
Comment: | added env vars to custom menu item context |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.65 |
Files: | files | file ages | folders |
SHA1: |
3f0d1f8803cb6a95353b635c2dfe9c9c |
User & Date: | bjbarcla on 2018-02-14 19:16:52 |
Other Links: | branch diff | manifest | tags |
Context
2018-02-15
| ||
16:45 | Rebuilt manual check-in: d7e5356bca user: mrwellan tags: v1.65 | |
2018-02-14
| ||
19:16 | added env vars to custom menu item context check-in: 3f0d1f8803 user: bjbarcla tags: v1.65 | |
17:58 | fixed issues with context menu check-in: b5ed77d745 user: bjbarcla tags: v1.65 | |
Changes
Modified common.scm from [9d055a50b8] to [ded8fa3dd3].
︙ | |||
2767 2768 2769 2770 2771 2772 2773 | 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 | - + + | (hash-table->alist delta-env-alist-or-hash-table) delta-env-alist-or-hash-table)) (restore-thunks (filter identity (map (lambda (env-pair) (let* ((env-var (car env-pair)) |
︙ |
Modified dashboard-context-menu.scm from [10f8461975] to [6e0d3fe684].
︙ | |||
255 256 257 258 259 260 261 | 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 | - + + - + + + | ;; item5 custom show test-patt (%test-patt%):echo "%test-patt%" ;; item6 custom show test-run-dir (%test-run-dir%):echo "%test-run-dir%" ;; item7 custom show run-area-home (%run-area-home%):echo "%run-area-home%" ;; item8 custom show megatest root (%mt-root%):echo "%mt-root%" ;; item9 custom ls : ls -lrt ;; item10 custom see $MT_RUN_AREA_HOME (not yet implemented) : echo $MT_RUN_AREA_HOME |
︙ | |||
299 300 301 302 303 304 305 | 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 | - - + + + + + + - - - - - - - - - + + + + + + + + + | #t)) menu-item-text-raw subst-alist))) (iup:menu-item (conc "*"menu-item-text) #:action (lambda (obj) |
︙ |
Modified runs.scm from [977a378661] to [55626f9a0f].
︙ | |||
44 45 46 47 48 49 50 51 52 53 54 55 56 57 | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | ((can-run-more-tests-count 0) : fixnum)) (defstruct runs:testdat hed tal reg reruns test-record test-name item-path jobgroup waitons testmode newtal itemmaps prereqs-not-met) (define (runs:get-mt-env-alist run-id runname target testname itempath) ;;(bb-check-path msg: "runs:set-megatest-env-vars entry") `(("MT_TEST_NAME" . ,testname) ("MT_ITEMPATH" . ,itempath) ("MT_TARGET" . ,target) ("MT_RUNNAME" . ,runname) ("MT_RUN_AREA_HOME" . ,*toppath*) ,@(let* ((link-tree (common:get-linktree))) ;; (configf:lookup *configdat* "setup" "linktree"))) (if link-tree (list (cons "MT_LINKTREE" link-tree) (cons "MT_TEST_RUN_DIR" (conc link-tree "/" target "/" runname "/" testname (if (and (string? itempath) (not (equal? itempath ""))) (conc "/" itempath) ""))) ) '())) ,@(map (lambda (key) (cons (car key) (cadr key))) (keys:target->keyval (rmt:get-keys) target)) ,@(map (lambda (var) (let ((val (configf:lookup *configdat* "custom-context-menu-items" var))) (cons var val))) (configf:section-vars *configdat* "env-override")))) ;; set up needed environment variables given a run-id and optionally a target, itempath etc. ;; (define (runs:set-megatest-env-vars run-id #!key (inkeys #f)(inrunname #f)(inkeyvals #f)(intarget #f)(testname #f)(itempath #f)) ;;(bb-check-path msg: "runs:set-megatest-env-vars entry") (let* ((target (or intarget (common:args-get-target) (get-environment-variable "MT_TARGET"))) |
︙ |