Feat/halt on error (#862)
* Introduce halt-on-error * Introduce halt-on-error * Fix wording
This commit is contained in:
@@ -61,7 +61,7 @@ def test_job_submit() -> None:
|
||||
|
||||
|
||||
def test_submit_all() -> None:
|
||||
commands = [ sys.executable, 'facefusion.py', 'job-submit-all', '--jobs-path', get_test_jobs_directory() ]
|
||||
commands = [ sys.executable, 'facefusion.py', 'job-submit-all', '--jobs-path', get_test_jobs_directory(), '--halt-on-error' ]
|
||||
|
||||
assert subprocess.run(commands).returncode == 1
|
||||
|
||||
@@ -79,7 +79,7 @@ def test_submit_all() -> None:
|
||||
commands = [ sys.executable, 'facefusion.py', 'job-add-step', 'test-job-submit-all-2', '--jobs-path', get_test_jobs_directory(), '-s', get_test_example_file('source.jpg'), '-t', get_test_example_file('target-240p.jpg'), '-o', get_test_output_file('test-job-remix-step.jpg') ]
|
||||
subprocess.run(commands)
|
||||
|
||||
commands = [ sys.executable, 'facefusion.py', 'job-submit-all', '--jobs-path', get_test_jobs_directory() ]
|
||||
commands = [ sys.executable, 'facefusion.py', 'job-submit-all', '--jobs-path', get_test_jobs_directory(), '--halt-on-error' ]
|
||||
|
||||
assert subprocess.run(commands).returncode == 0
|
||||
assert is_test_job_file('test-job-submit-all-1.json', 'queued') is True
|
||||
@@ -103,7 +103,7 @@ def test_job_delete() -> None:
|
||||
|
||||
|
||||
def test_job_delete_all() -> None:
|
||||
commands = [ sys.executable, 'facefusion.py', 'job-delete-all', '--jobs-path', get_test_jobs_directory() ]
|
||||
commands = [ sys.executable, 'facefusion.py', 'job-delete-all', '--jobs-path', get_test_jobs_directory(), '--halt-on-error' ]
|
||||
|
||||
assert subprocess.run(commands).returncode == 1
|
||||
|
||||
@@ -113,7 +113,7 @@ def test_job_delete_all() -> None:
|
||||
commands = [ sys.executable, 'facefusion.py', 'job-create', 'test-job-delete-all-2', '--jobs-path', get_test_jobs_directory() ]
|
||||
subprocess.run(commands)
|
||||
|
||||
commands = [ sys.executable, 'facefusion.py', 'job-delete-all', '--jobs-path', get_test_jobs_directory() ]
|
||||
commands = [ sys.executable, 'facefusion.py', 'job-delete-all', '--jobs-path', get_test_jobs_directory(), '--halt-on-error' ]
|
||||
|
||||
assert subprocess.run(commands).returncode == 0
|
||||
assert is_test_job_file('test-job-delete-all-1.json', 'drafted') is False
|
||||
|
||||
Reference in New Issue
Block a user