fix EESSI prefix for complex prompts#196
Conversation
|
Can you add an additional test for this more complex case in software-layer-scripts/.github/workflows/scripts/test_init_scripts.sh Lines 155 to 168 in f453fe9 EDIT: I guess in this case you may need a larger comparison string to make sure the evaluted content is still being evaluated. Maybe a PS1 like |
Co-authored-by: Caspar van Leeuwen <33718780+casparvl@users.noreply.github.com>
|
hm, the test fails as would be expected before this PR. @ocaisa do you have any idea what i'm doing wrong? |
|
@ocaisa i finally managed to fix it by setting not sure if this is the best way to do this, but i suspect other tests may also need fixing? |
|
Thanks for figuring it out, EFP release was today so I've been busy... |
|
Ah, previously we were the shell initialisation separately from the EESSI module: but this particular case requires a combined test. I wonder if we should only do combined tests... |
This could probably be done even more widely, but would require a separate PR.
ocaisa
left a comment
There was a problem hiding this comment.
LGTM, I've adopted your approach for the whole specific test. It could probably be done for all tests but that likely requires more work and can be left to a follow-up
|
bot: build repo:eessi.io-2023.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx |
|
bot: build repo:eessi.io-2023.06-software instance:eessi-bot-jsc for:arch=aarch64/nvidia/grace |
|
bot: build repo:eessi.io-2023.06-software instance:eessi-bot-mc-aws for:arch=x86_64/amd/zen2 |
|
bot: build repo:eessi.io-2023.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx |
|
bot: build repo:eessi.io-2023.06-software instance:eessi-bot-mc-aws for:arch=x86_64/amd/zen2 |
|
bot: build repo:eessi.io-2023.06-software instance:eessi-bot-deucalion for:arch=aarch64/a64fx |
|
New job on instance
|
|
New job on instance
|
|
Staging PR merged, going in, thanks @smoors |
my prompt looks like this:
before this PR, it results in an error and a hanging shell after unloading the EESSI module: