Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
9e197d39
Commit
9e197d39
authored
Nov 13, 2013
by
James Tanner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bool comparision in recursive copy tests
parent
33242cac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
test/playbook-recursive-copy.yml
+14
-14
No files found.
test/playbook-recursive-copy.yml
View file @
9e197d39
...
...
@@ -18,10 +18,10 @@
-
copy
:
src={{filesdir}}/subdir/subdir2/subdir3/test1 dest={{testdir}}/file1
register
:
res
-
command
:
test -f {{testdir}}/file1
-
command
:
test "{{res.changed}}" =
=
"True"
-
command
:
test "{{res.changed}}" = "True"
-
copy
:
src={{filesdir}}/subdir/subdir2/subdir3/test1 dest={{testdir}}/file1
register
:
res
-
command
:
test "{{res.changed}}" =
=
"False"
-
command
:
test "{{res.changed}}" = "False"
-
name
:
"
src
single
file,
dest
dir
w/trailing
slash"
command
:
rm -rf {{testdir}}
...
...
@@ -29,10 +29,10 @@
-
copy
:
src={{filesdir}}/subdir/subdir2/subdir3/test1 dest={{testdir}}/
register
:
res
-
command
:
test -f {{testdir}}/test1
-
command
:
test "{{res.changed}}" =
=
"True"
-
command
:
test "{{res.changed}}" = "True"
-
copy
:
src={{filesdir}}/subdir/subdir2/subdir3/test1 dest={{testdir}}/
register
:
res
-
command
:
test "{{res.changed}}" =
=
"False"
-
command
:
test "{{res.changed}}" = "False"
-
name
:
"
src
single
file,
dest
dir
wo/trailing
slash
-
doesn't
behave
in
sane
way"
command
:
rm -rf {{testdir}}
...
...
@@ -40,10 +40,10 @@
-
copy
:
src={{filesdir}}/subdir/subdir2/subdir3/test1 dest={{testdir}}
register
:
res
-
shell
:
test -f {{testdir}}/test1
-
command
:
test "{{res.changed}}" =
=
"True"
-
command
:
test "{{res.changed}}" = "True"
-
copy
:
src={{filesdir}}/subdir/subdir2/subdir3/test1 dest={{testdir}}
register
:
res
-
command
:
test "{{res.changed}}" =
=
"False"
-
command
:
test "{{res.changed}}" = "False"
#
# Now, test recursive behavior
...
...
@@ -59,10 +59,10 @@
-
command
:
test -d {{testdir}}/subdir2/subdir3
-
command
:
test -f {{testdir}}/subdir2/subdir3/test1
-
command
:
test -f {{testdir}}/subdir2/subdir3/test2
-
command
:
test "{{res.changed}}" =
=
"True"
-
command
:
test "{{res.changed}}" = "True"
-
copy
:
src={{filesdir}}/subdir/ dest={{testdir}}/
register
:
res
-
command
:
test "{{res.changed}}" =
=
"False"
-
command
:
test "{{res.changed}}" = "False"
# Expecting the same behavior
-
name
:
"
src
dir
w/trailing
slash,
dest
wo/trailing
slash"
...
...
@@ -75,10 +75,10 @@
-
command
:
test -d {{testdir}}/subdir2/subdir3
-
command
:
test -f {{testdir}}/subdir2/subdir3/test1
-
command
:
test -f {{testdir}}/subdir2/subdir3/test2
-
command
:
test "{{res.changed}}" =
=
"True"
-
command
:
test "{{res.changed}}" = "True"
-
copy
:
src={{filesdir}}/subdir/ dest={{testdir}}
register
:
res
-
command
:
test "{{res.changed}}" =
=
"False"
-
command
:
test "{{res.changed}}" = "False"
-
name
:
"
src
dir
wo/trailing
slash,
dest
w/trailing
slash"
command
:
rm -rf {{testdir}}
...
...
@@ -90,10 +90,10 @@
-
command
:
test -d {{testdir}}/subdir/subdir2/subdir3
-
command
:
test -f {{testdir}}/subdir/subdir2/subdir3/test1
-
command
:
test -f {{testdir}}/subdir/subdir2/subdir3/test2
-
command
:
test "{{res.changed}}" =
=
"True"
-
command
:
test "{{res.changed}}" = "True"
-
copy
:
src={{filesdir}}/subdir dest={{testdir}}/
register
:
res
-
command
:
test "{{res.changed}}" =
=
"False"
-
command
:
test "{{res.changed}}" = "False"
# Expecting the same behavior
-
name
:
"
src
dir
wo/trailing
slash,
dest
wo/trailing
slash"
...
...
@@ -106,10 +106,10 @@
-
command
:
test -d {{testdir}}/subdir/subdir2/subdir3
-
command
:
test -f {{testdir}}/subdir/subdir2/subdir3/test1
-
command
:
test -f {{testdir}}/subdir/subdir2/subdir3/test2
-
command
:
test "{{res.changed}}" =
=
"True"
-
command
:
test "{{res.changed}}" = "True"
-
copy
:
src={{filesdir}}/subdir dest={{testdir}}
register
:
res
-
command
:
test "{{res.changed}}" =
=
"False"
-
command
:
test "{{res.changed}}" = "False"
-
name
:
"
Verifying
notify
handling
for
recursive
files"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment