Skip to content

Commit

Permalink
tests: check_import and check_export should run for at least one plugin
Browse files Browse the repository at this point in the history
closes #2423
  • Loading branch information
llukask authored and kodebach committed Sep 29, 2020
1 parent cac3372 commit 5f88177
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/shell/check_export.sh
Expand Up @@ -10,6 +10,8 @@ ROOT=$USER_ROOT
FILE="$(mktempfile_elektra)"
PLUGIN=$PLUGIN

RAN_ONCE=0

cleanup() {
rm -f $FILE
}
Expand All @@ -26,6 +28,8 @@ for PLUGIN in $PLUGINS; do
continue
fi

RAN_ONCE=1

echo -------- $PLUGIN -----------

"$KDB" set $ROOT "root" > /dev/null
Expand Down Expand Up @@ -72,4 +76,7 @@ for PLUGIN in $PLUGINS; do

done

test $RAN_ONCE != 0
succeed_if "check_export should run for at least one plugin"

end_script
7 changes: 7 additions & 0 deletions tests/shell/check_import.sh
Expand Up @@ -10,6 +10,8 @@ ROOT=$USER_ROOT
FILE="$(mktempfile_elektra)"
SIDE=$ROOT/../side_val

RAN_ONCE=0

cleanup() {
rm -f $FILE
}
Expand All @@ -26,6 +28,8 @@ for PLUGIN in $PLUGINS; do
continue
fi

RAN_ONCE=1

echo -------- $PLUGIN -----------

echo "Import with existing root"
Expand Down Expand Up @@ -251,4 +255,7 @@ user/tests/script/key"

done

test $RAN_ONCE != 0
succeed_if "check_import should run for at least one plugin"

end_script

0 comments on commit 5f88177

Please sign in to comment.