From 6dbcd17af9b268730f6700097ce7b0f27fbb3d13 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Feb 21 2012 15:54:44 +0000 Subject: Merge branch 'master' of gitorious.org:testautomation/t_functional --- diff --git a/tests/0_common/01_dist_release_check.sh b/tests/0_common/01_dist_release_check.sh new file mode 100644 index 0000000..71a514c --- /dev/null +++ b/tests/0_common/01_dist_release_check.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# Just a check to determine full version (example 5.8) or just dist (example 6) + +export qa_dist=$(rpm -q --queryformat '%{version}\n' centos-release) +export qa_releasever=$(rpm -q --queryformat '%{version}.' centos-release ; rpm -q --queryformat '%{release}\n' centos-release|cut -f 1 -d '.')