Skip to content

Commit

Permalink
tests: fix is_not_rw_storage
Browse files Browse the repository at this point in the history
is_not_rw_storage now checks if the output of "kdb info {plugin}
provides" contains the word "storage" instead of checking if it is equal
to storage.

 ElektraInitiative#2423
  • Loading branch information
llukask committed Aug 7, 2019
1 parent f9c4f26 commit 47ffb55
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/shell/include_common.sh.in
Expand Up @@ -205,8 +205,12 @@ check_set_mv_rm() {
#

is_not_rw_storage() {
test ! "x$("$KDB" info $PLUGIN provides 2> /dev/null)" = "xstorage" \
-o "x$PLUGIN" = "xhosts" \
echo $("$KDB" info $PLUGIN provides 2> /dev/null) | fgrep -qw "storage"
if [ $? != 0 ]; then
return 0
fi

test "x$PLUGIN" = "xhosts" \
-o "x$PLUGIN" = "xfstab" \
-o "x$PLUGIN" = "xline" \
-o "x$PLUGIN" = "xuname" \
Expand All @@ -219,7 +223,8 @@ is_not_rw_storage() {
-o "x$PLUGIN" = "xsimplespeclang" \
-o "x$PLUGIN" = "xmozprefs" \
-o "x$PLUGIN" = "xfile" \
-o "x$PLUGIN" = "xruby"
-o "x$PLUGIN" = "xruby" \
-o "x$PLUGIN" = "xdesktop"
}

is_plugin_available() {
Expand Down

0 comments on commit 47ffb55

Please sign in to comment.