Add tests that packages depend on bash
This commit adds bats tests that the RPM and Debian packages depend on bash. Relates #18292
This commit is contained in:
parent
9d5537d874
commit
9ce96f5792
|
@ -40,6 +40,10 @@ setup() {
|
|||
export_elasticsearch_paths
|
||||
}
|
||||
|
||||
@test "[DEB] package depends on bash" {
|
||||
dpkg -I elasticsearch-$(cat version).deb | grep "Depends:.*bash.*"
|
||||
}
|
||||
|
||||
##################################
|
||||
# Install DEB package
|
||||
##################################
|
||||
|
|
|
@ -39,6 +39,10 @@ setup() {
|
|||
export_elasticsearch_paths
|
||||
}
|
||||
|
||||
@test "[RPM] package depends on bash" {
|
||||
rpm -qpR elasticsearch-$(cat version).rpm | grep '/bin/bash'
|
||||
}
|
||||
|
||||
##################################
|
||||
# Install RPM package
|
||||
##################################
|
||||
|
|
Loading…
Reference in New Issue