From 65772ede268cced19949a92c11c6466187da0a13 Mon Sep 17 00:00:00 2001 From: Deepak Agrawal Date: Mon, 13 Aug 2018 19:49:56 +0530 Subject: [PATCH] Iosxr: integration test failure on devel (#44057) --- .../targets/iosxr_command/tests/cli/cli_command.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/integration/targets/iosxr_command/tests/cli/cli_command.yaml b/test/integration/targets/iosxr_command/tests/cli/cli_command.yaml index f265788ecf9..31e410e5d1f 100644 --- a/test/integration/targets/iosxr_command/tests/cli/cli_command.yaml +++ b/test/integration/targets/iosxr_command/tests/cli/cli_command.yaml @@ -23,6 +23,13 @@ - "result.failed == true" - "result.msg is defined" +- name: Remove existing file if any + cli_command: + command: 'delete harddisk:ansible_tmp.txt' + prompt: 'Delete harddisk\:ansible_tmp\.txt\[confirm\]' + answer: "\r\n" + ignore_errors: yes + - block: - name: Run command with prompt cli_command: @@ -34,7 +41,7 @@ - assert: that: - "result.stdout is defined" - - "'ansible_tmp' in result.stdout[0]" + - "'ansible_tmp' in result.stdout" always: - name: Remove copied file cli_command: