Skip to content

Commit

Permalink
Add posibility to recursively find test scripts in configured directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Kozoriz committed Jul 7, 2016
1 parent 54e28cd commit 3d688ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@

scripts_clone_dir = work_dir + "sdl_atf_test_scripts/"

# test_scripts_dir is dir where atomatic tool will search test scripts for running
test_scripts_dir = scripts_clone_dir + "test_scripts/"

test_run_dir = work_dir + "test_run/"
reports_dir = test_run_dir + "reports/"

Expand Down
4 changes: 2 additions & 2 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def tests_run():
if not exists(config.test_run_dir):
print("{} does not exists".format(config.test_run_dir))
with cd(config.test_run_dir):
output = run('ls test_scripts')
output = run('find {} -name "*.lua"'.format(config.test_scripts_dir))
scripts = output.split()
known_issues = run("cat KnownIssues.md")
known_issues = get_known_issues(known_issues)
Expand All @@ -164,7 +164,7 @@ def tests_run():
print("Execute {}".format(script))
with settings(warn_only=True):
output = run('''./start.sh --storeFullSDLLogs \
--sdl_core=./SDL_bin/ test_scripts/{} |\
--sdl_core=./SDL_bin/ {} |\
tee console_output'''.format(script))
script_reports_dir = "{}/{}".format(config.reports_dir, script)
run("mkdir -p {}".format(script_reports_dir))
Expand Down

0 comments on commit 3d688ea

Please sign in to comment.