summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-06-06 10:05:17 -0700
committerGitHub <noreply@github.com>2019-06-06 10:05:17 -0700
commitc9dcc0d64d53d85eac22e0c490f18c89f0d7f326 (patch)
tree87a991a654673d19cb130d7d0988b6bac82db9aa /spec
parent0c35de7e3df6a013a2947002a68945b77a61606d (diff)
parentd6c74cb01d35f74f33dab0b18d810b8d5ae34567 (diff)
downloadchef-c9dcc0d64d53d85eac22e0c490f18c89f0d7f326.tar.gz
Merge pull request #8627 from chef/jsinha/add_bk_verify
Enable more BK verification tests
Diffstat (limited to 'spec')
-rw-r--r--spec/functional/resource/ifconfig_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/functional/resource/ifconfig_spec.rb b/spec/functional/resource/ifconfig_spec.rb
index c52a4c0694..10ebcaf8b6 100644
--- a/spec/functional/resource/ifconfig_spec.rb
+++ b/spec/functional/resource/ifconfig_spec.rb
@@ -53,7 +53,7 @@ describe Chef::Resource::Ifconfig, :requires_root, :skip_travis, external: inclu
end
def fetch_first_interface_name
- shell_out("ip link list |grep UP|grep -vi loop|head -1|cut -d':' -f 2").stdout.strip
+ shell_out("ip link list |grep UP|grep -vi loop|head -1|cut -d':' -f 2 |cut -d'@' -f 1").stdout.strip
end
# **Caution: any updates to core interfaces can be risky.