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 Apr 7, 2019
1 parent 7775c90 commit f9cb1de
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/shell/include_common.sh.in
Expand Up @@ -201,8 +201,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 @@ -215,7 +219,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 f9cb1de

Please sign in to comment.