Skip to content

Commit 6f5cc29

Browse files
authored
Merge pull request #268 from linode/fix_kernel_test_regex
Updating the regexes for the kernels test
2 parents c0767f1 + 06166e4 commit 6f5cc29

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

test/kernels/kernels.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ teardown() {
3535
local kernelWithFields
3636

3737
for kernelWithFields in $kernelsList ; do
38-
run bash -c "echo $kernelWithFields | egrep 'linode/.*,.*,(False|True),(False|True),(i386|x86_64),(False|True)'"
38+
run bash -c "echo $kernelWithFields | egrep 'linode/.*,.*,(False|True),(i386|x86_64),(False|True),(False|True),.*'"
3939
[ "$status" -eq 0 ]
4040
done
4141
}
@@ -54,5 +54,5 @@ teardown() {
5454

5555
assert_success
5656
assert_output --partial "id,version,kvm,architecture,pvops,deprecated,built"
57-
assert_output --regexp "linode/.*,.*,(False|True),(False|True),(i386|x86_64),(False|True)"
57+
assert_output --regexp "linode/.*,.*,(False|True),(i386|x86_64),(False|True),(False|True),.*"
5858
}

test/networking/networking.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ teardown() {
3535
assert_success
3636

3737
assert_line --index 0 --regexp "^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}"
38-
assert_line --index 0 --regexp "ipv4,True,li[0-9].*-[0-9].*\.members.linode.com,.*,[0-9][0-9][0-9][0-9][0-9][0-9][0-9]*"
38+
assert_line --index 0 --regexp "ipv4,True,[0-9]{1,3}\-[0-9]{1,3}\-[0-9]{1,3}\-[0-9]{1,3}\.ip.linodeusercontent.com,.*,[0-9][0-9][0-9][0-9][0-9][0-9][0-9]*"
3939
assert_line --index 1 --regexp "ipv6,True,,.*,[0-9][0-9][0-9][0-9][0-9][0-9]*"
4040

4141
# Gnarly Ipv6 Regex

0 commit comments

Comments
 (0)