From 653d1a6beff83eb36a51b576f4b417cf94bf788a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Hrdina?= Date: Tue, 18 Oct 2022 15:41:31 +0200 Subject: [PATCH] Updating test to work on rhels /CoreOS/vim/Sanity/vim-aliases --- Sanity/vim-aliases/runtest.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Sanity/vim-aliases/runtest.sh b/Sanity/vim-aliases/runtest.sh index 3a73cdf..dc5d341 100755 --- a/Sanity/vim-aliases/runtest.sh +++ b/Sanity/vim-aliases/runtest.sh @@ -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 "--------------------------------------------------------------"