You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/0_common/01_dist_release_check.sh

6 lines
305 B

#!/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 '.')