--non-local flag not fully passed through create_test
- Dominant language
- Python
- Stars
- 174
- Forks
- 225
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 14
Description
I found myself hitting [this check](https://github.com/ESMCI/cime/blob/51cfec52f297eb4d30dd34548bf4b69b9ab72d1e/CIME/case/case.py#L198-L205) even when passing `--non-local` to `create_test`. This is surprising because it's under the conditional `if not self._non_local:`. This patch shows that `non_local`, which is supposed to be passed to `Case.init()`, is False and the `NONLOCAL` XML variable is unset (None):
```diff
diff --git a/CIME/case/case.py b/CIME/case/case.py
index bd6db1e50..940c77328 100644
--- a/CIME/case/case.py
+++ b/CIME/case/case.py
@@ -126,6 +126,7 @@ class Case(object):
self.gpu_enabled = False
self._non_local = non_local
self.read_xml()
+ raise RuntimeError(f'\n{self._non_local=}\nNONLOCAL: {self.get_value("NONLOCAL")}')
srcroot = self.get_value("SRCROOT")
```
CC @billsacks, @ekluzek
Contributor guide
Assessment
This issue has not been assessed yet.