Updating test to work on rhels

/CoreOS/vim/Sanity/vim-aliases
This commit is contained in:
František Hrdina 2022-10-18 15:41:31 +02:00
commit 653d1a6bef

View file

@ -59,11 +59,11 @@ rlJournalStart
do
rlLog "$shell: Running $app"
$shell -c "$app --version > out"
rlAssertGrep 'Huge version without GUI' out
rlAssertGrep 'Huge version without GUI' out
rlLog "$shell: Running $app under sudo"
sudo $shell -c "$app --version > sudo_out"
rlAssertGrep 'Huge version without GUI' sudo_out
rlAssertGrep 'Huge version without GUI' sudo_out
done
rlRun "dnf -y remove $VI_PACKAGE" 0 "Remove vi"
@ -96,13 +96,18 @@ rlJournalStart
for app in /usr/bin/vi /usr/bin/view
do
if rlIsFedora; then
str="Tiny"
else
str="Small"
fi
rlLog "$shell: Running $app"
$shell -c "$app --version > out"
rlAssertGrep 'Tiny version without GUI' out
rlAssertGrep ''$str' version without GUI' out
rlLog "$shell: Running $app under sudo"
sudo $shell -c "$app --version > sudo_out"
rlAssertGrep 'Tiny version without GUI' sudo_out
rlAssertGrep ''$str' version without GUI' sudo_out
done
rlLog "--------------------------------------------------------------"