test: CmdAddWithResult sets CNI_PATH from PATH
authorDan Williams <dcbw@redhat.com>
Wed, 19 Apr 2017 04:45:05 +0000 (23:45 -0500)
committerDan Williams <dcbw@redhat.com>
Wed, 19 Apr 2017 04:49:26 +0000 (23:49 -0500)
commit7309649a66c340d5a90886193d58e6aab4e1873b
treed3dc6353fa036bcde32926818f3c3b49f26d0bea
parent9ef6f5f723ef9b92841f92cf661a7f40e9573f36
test: CmdAddWithResult sets CNI_PATH from PATH

To actually use CNI plugins in the given CNI_PATH, we need to add
CNI_PATH to PATH because CmdAddWithResult() does this:

os.Setenv("CNI_PATH", os.Getenv("PATH"))
test