Removing cmd from tempest workspace creation
As cwd is used to specifiy from which directory we need to run the command. Since workspace is created once tempest command is present and tempest is coming from package and so can be executed from anywhere from the system otherwise cwd is give error stating directory not found. so, removing it. Change-Id: Ia9e48d951e0f37e985e628b7a49401d75c9e4729
This commit is contained in:
parent
b2267939f1
commit
eaedd4df1f
|
@ -452,7 +452,6 @@ class tempest(
|
|||
# in tempest workspace
|
||||
exec {'tempest-workspace':
|
||||
command => "tempest init ${tempest_workspace}",
|
||||
cwd => $tempest_workspace,
|
||||
path => ['/bin', '/usr/bin'],
|
||||
refreshonly => true,
|
||||
require => Package['tempest'],
|
||||
|
|
|
@ -325,7 +325,6 @@ describe 'tempest' do
|
|||
it 'creates tempest workspace' do
|
||||
is_expected.to contain_exec('tempest-workspace').with(
|
||||
:command => 'tempest init /var/lib/tempest',
|
||||
:cwd => '/var/lib/tempest',
|
||||
:path => ['/bin', '/usr/bin'],
|
||||
:refreshonly => true,
|
||||
:require => 'Package[tempest]'
|
||||
|
|
Loading…
Reference in New Issue