diff --git a/test/integration/aws-codedeploy-agent/serverspec/default_spec.rb b/test/integration/aws-codedeploy-agent/serverspec/default_spec.rb index c7185d2..0bf5552 100644 --- a/test/integration/aws-codedeploy-agent/serverspec/default_spec.rb +++ b/test/integration/aws-codedeploy-agent/serverspec/default_spec.rb @@ -6,6 +6,6 @@ it { should be_enabled } end -describe command('ps -ax | grep "codedeploy-agent: InstanceAgent"') do +describe command('ps -ax | grep "codedeploy-agent: InstanceAgent" | grep -v grep') do its(:stdout) { should match /codedeploy-agent: InstanceAgent/ } end