Skip to content

Commit

Permalink
added mkdir -p to full path to testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryMcGuinness-NOAA committed Jun 25, 2024
1 parent 8d638ee commit fd4aa91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci/scripts/tests/test_rocotostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


if not os.path.isfile(os.path.join(testdata_full_path, 'database.db')):
os.makedirs(testdata_full_path, exist_ok=True)
workflow_url = test_data_url + str(testdata_path) + '/workflow.xml'
workflow_destination = os.path.join(testdata_full_path, 'workflow.xml')
wget.download(workflow_url, workflow_destination)
Expand Down Expand Up @@ -68,6 +69,7 @@ def test_rocoto_stalled():
db = os.path.join(testdata_full_path, 'stalled.db')

if not os.path.isfile(os.path.join(testdata_full_path, 'stalled.db')):
os.makedirs(testdata_full_path, exist_ok=True)
workflow_url = test_data_url + str(testdata_path) + '/stalled.xml'
database_url = test_data_url + str(testdata_path) + '/stalled.db'

Expand All @@ -82,7 +84,7 @@ def test_rocoto_stalled():

result = rocoto_statcount(rocotostat)

assert result['SUCCEEDED'] == 10
assert result['SUCCEEDED'] == 11
assert is_stalled(result)

rmtree(testdata_full_path)

0 comments on commit fd4aa91

Please sign in to comment.