Allow one to six parallel llama.cpp build jobs
This commit is contained in:
1 parent
d8aa890ec6
commit
b9cf08ea7e
4 files changed
+13
-5
No files matched your search
+8
-1
@@ -31,7 +31,14 @@ class RuntimeTests(unittest.TestCase):
|
||||
r=Runtime(d)
|
||||
for ref in ('main; reboot','--upload-pack=x','../main','https://evil/repo'):
|
||||
with self.assertRaises(ValueError):r.start(ref)
|
||||
with self.assertRaises(ValueError):r.start('b9000',jobs=32)
|
||||
for jobs in (0,7,32,True,2.5):
|
||||
with self.assertRaises(ValueError):r.start('b9000',jobs=jobs)
|
||||
def test_six_build_jobs_pass_validation(self):
|
||||
with tempfile.TemporaryDirectory() as d:
|
||||
r=Runtime(d)
|
||||
with patch.object(r,'prerequisites',return_value={'cuda_ready':False}) as check:
|
||||
with self.assertRaisesRegex(ValueError,'Build-Werkzeuge fehlen'):r.start('v0.6.0',jobs=6)
|
||||
check.assert_called_once()
|
||||
def test_missing_tools_does_not_spawn(self):
|
||||
with tempfile.TemporaryDirectory() as d:
|
||||
r=Runtime(d)
|
||||
|
||||
Reference in new issue
Block a user