-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in rt.sh jet section when ACCNR is not set #1014
Comments
I got the error too, so I was setting the ACCNR to "h-nems". I think the ACCNR was set to nems by default.sh. Maybe we need to add a line in jet section in rt.sh to reset ACCNR to "h-nems" if it's "nems". |
Your explanation makes a lot more sense than my assumption that the syntax could be messed up by a dash in the default value. I don't think there should be an entry in |
If the ACCNR default should depend on the platform, then default_vars.sh should not set it. A special case of overriding nems with h-nems (even when it is set manually to nems by the user) seem sloppy. Also, ACCR is the wrong variable, you should set ACCNR=h-nems in your script before running rt.sh. If you set ACCR, then the error is yours. Was that a typo in your title? Or an actual error in your execution of rt.sh? |
Typo in the tile, fixed it. |
I will test a fix for this (move the default to rt.sh) and issue a PR tomorrow-ish. It'll have to be tested on all platforms, in both baseline generation and regression test mode. That means we should merge it with a PR that changes the results. |
Thanks a lot for doing this, Sam! Yes, agreed, should be part of a baseline-changing PR. And needs to be tested manually as well, because auto-rt is always setting |
Thanks, Sam. According to current commit queue, it will be with PR#982 planned on 1/25. |
Barring extraordinary events, that should be doable. |
The fix is in #1016 but I only did minimal testing to avoid wasting resources. I tested enough to ensure ACCNR was passed correctly. Please give me another PR to merge into #1016 as soon as possible so I can do full testing. There may be an unwanted side-effect: If someone was setting ACCNR incorrectly before running rt.sh, that incorrect value will now be passed through to the batch system. Make sure your automated test suites are setting the right ACCNR value, or none at all! |
@climbfuji When PR #1009 was merged, it should have fixed your problem. Can you confirm and close the ticket? |
The autoRT runs fine on jet now. I will close the issue. |
Description
A recent PR (#981) updated the jet section in
rt.sh
to allow settingACCNR
instead of using the hardcodedh-nems
. A fallback/default valueh-nems
was intended in this part:The problem is that bash gets confused by the
-
in theh-nems
default value, which results inand causes
rt.sh
abort withTo Reproduce:
Try running
rt.sh
on jet without settingACCNR
. Then, oops, look at the bug.The text was updated successfully, but these errors were encountered: