summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2019-05-21 15:28:10 +0530
committerAmar Tumballi <amarts@redhat.com>2019-05-27 03:13:13 +0000
commitcce775726af28c602d99f73a65439a2564790381 (patch)
tree7c417894e9437a68fb9d858d94cab0cb8535a4db /tests/volume.rc
parenta5a9ea6fa440ebbaeb40cf17d33d39fc3fd6b312 (diff)
tests: Add history api tests
updates: bz#1193929 Change-Id: Ic26ab5277f720c734f083150c1c541763dfa64aa Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index af7690b..de99e70 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -902,6 +902,17 @@ function check_changelog_op {
$PYTHON $(dirname $0)/../../utils/changelogparser.py ${clog_path}/CHANGELOG | grep "$op" | wc -l
}
+function processed_changelogs {
+ local processed_dir=$1
+ count=$(ls -l $processed_dir | grep CHANGELOG | wc -l)
+ if [ $count -gt 0 ];
+ then
+ echo "Y"
+ else
+ echo "N"
+ fi
+}
+
function volgen_check_ancestry {
#Returns Y if ancestor_xl is an ancestor of $child_xl according to the volfile
local volfile="$1"