Skip to content

Commit

Permalink
Fix multiline migration warning for csh (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
HakonSohoel authored Nov 13, 2024
1 parent ebf44f5 commit 0b6c152
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion komodo/data/activator_switch.csh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ if ( `uname -r` =~ *el7* ) then
endif
setenv KOMODO_RELEASE $KOMODO_RELEASE_REAL
else
echo "{{ migration_warning }}"
{%- for line in migration_warning.split('\n') %}
echo "{{ line }}"
{%- endfor %}
endif
else if ( `uname -r` =~ *el8* ) then
setenv KOMODO_ROOT {{ prefix }}
Expand Down
2 changes: 1 addition & 1 deletion komodo/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"that is not supported. RHEL7 has been phased out.\n"
"From November 2024, komodo versions only support RHEL8.\n"
"Please migrate as soon as possible.\n"
"To use the latest stable RHEL7 build use either: "
"To use the latest stable RHEL7 build use either:\n"
"source /prog/res/komodo/deprecated-rhel7/enable\n"
"source /prog/res/komodo/deprecated-rhel7/enable.csh\n"
"\n"
Expand Down
9 changes: 8 additions & 1 deletion tests/test_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,14 @@ def test_write_activator_switches(tmpdir):
endif
setenv KOMODO_RELEASE $KOMODO_RELEASE_REAL
else
echo "{MIGRATION_WARNING}"
echo "Attention! Your machine is running on an environment that is not supported. RHEL7 has been phased out."
echo "From November 2024, komodo versions only support RHEL8."
echo "Please migrate as soon as possible."
echo "To use the latest stable RHEL7 build use either:"
echo "source /prog/res/komodo/deprecated-rhel7/enable"
echo "source /prog/res/komodo/deprecated-rhel7/enable.csh"
echo ""
echo "If you have any questions or issues - contact us on #ert-users on Slack or Equinor's Yammer."
endif
else if ( `uname -r` =~ *el8* ) then
setenv KOMODO_ROOT {prefix}
Expand Down

0 comments on commit 0b6c152

Please sign in to comment.