tools.deploy: Make sure to deploy-test in a temp directory and not the factor/ directory.

locals-and-roots
Doug Coleman 2016-03-29 08:44:24 -07:00
parent d07d127360
commit 41201fd1d1
1 changed files with 7 additions and 2 deletions

View File

@ -18,12 +18,17 @@ delete-staging-images
{ } [ "hello-world" shake-and-bake 550000 small-enough? ] unit-test
! XXX: deploy-path is "resource:" by default, but deploying there in a
! test would pollute the Factor directory, so deploy test to temp.
{ { "Hello world" } } [
f open-directory-after-deploy? [
H{
{ open-directory-after-deploy? f }
{ deploy-directory $[ temp-directory ] }
} [
"hello-world" deploy
"hello-world" deploy-path 1array
ascii [ lines ] with-process-reader
] with-variable
] with-variables
] unit-test
{ } [ "sudoku" shake-and-bake 800000 small-enough? ] unit-test