packer: support Debian 10.0 in tests
authorMichael Prokop <mika@grml.org>
Thu, 11 Jul 2019 16:41:17 +0000 (18:41 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 12 Jul 2019 08:42:42 +0000 (10:42 +0200)
Debian/buster is version "10.0".

packer/debian64.bats

index b0f9be6..d5aca59 100644 (file)
@@ -17,7 +17,7 @@ teardown() {
 @test "debian_version exists and is valid version" {
   run cat "${mountpath}/etc/debian_version"
   [ "$status" -eq 0 ]
 @test "debian_version exists and is valid version" {
   run cat "${mountpath}/etc/debian_version"
   [ "$status" -eq 0 ]
-  [[ "$output" == [0-9].[0-9]* ]] || [[ "$output" == 'buster/sid' ]]
+  [[ "$output" == [0-9]*.[0-9]* ]] || [[ "$output" == 'bullseye/sid' ]]
 }
 
 @test "kernel exists" {
 }
 
 @test "kernel exists" {