mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-30 05:29:52 +08:00
1fb104010c
This makes it easier to run tests interactively and inspect the results afterward, because the variables such as "el-get-sources" that were set for the tests are still bound to the values they had during the test.
20 lines
577 B
EmacsLisp
20 lines
577 B
EmacsLisp
;; https://github.com/dimitri/el-get/issues/594
|
|
;;
|
|
;; handle empty/missing PYTHONPATH correctly in pymacs
|
|
|
|
(setq debug-on-error t
|
|
el-get-verbose t
|
|
el-get-default-process-sync t)
|
|
|
|
;; Test Pymacs recipe with unset PYTHONPATH
|
|
(setenv "PYTHONPATH" nil)
|
|
(el-get 'sync 'pymacs)
|
|
(el-get-init 'pymacs)
|
|
(let ((pp (getenv "PYTHONPATH")))
|
|
(assert pp nil
|
|
"PYTHONPATH should be non-nil")
|
|
(assert (not (string= pp "")) nil
|
|
"PYTHONPATH should be non-empty")
|
|
(assert (not (string-match-p ":" pp)) nil
|
|
"PYTHONPATH should have only one element"))
|