Skip to content

Commit

Permalink
Convert integration test/development compose files to use new testcli…
Browse files Browse the repository at this point in the history
…ent.py file

Signed-off-by: Ying Li <ying.li@docker.com>
  • Loading branch information
cyli committed Aug 11, 2016
1 parent eb45c97 commit fbe85f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions buildscripts/testclient.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,12 @@ def run():

Tester(repo_name, Client(server)).run()

try:
with open("/test_output/SUCCESS", 'wb') as successFile:
successFile.write("OK")
os.chmod("/test_output/SUCCESS", 0o777)
except IOError:
pass

if __name__ == "__main__":
run()
2 changes: 1 addition & 1 deletion development.mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ services:
context: .
dockerfile: Dockerfile
env_file: buildscripts/env.list
command: buildscripts/testclient.sh
command: buildscripts/testclient.py
volumes:
- ./test_output:/test_output
networks:
Expand Down
2 changes: 1 addition & 1 deletion development.rethink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ services:
env_file: buildscripts/env.list
links:
- server:notary-server
command: buildscripts/testclient.sh
command: buildscripts/testclient.py
volumes:
rdb-01-data:
external: false
Expand Down

0 comments on commit fbe85f3

Please sign in to comment.