0032243: Tests - unexpected file artifact s.stl at the root of repository
authorkgv <kgv@opencascade.com>
Wed, 24 Mar 2021 07:52:51 +0000 (10:52 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 26 Mar 2021 16:48:51 +0000 (19:48 +0300)
Several test cases have been corrected to avoid creation
of temporary files s.stl, comp_nonmanifold.step, bug31301_1.stp at unexpected location.

tests/bugs/step/bug31301
tests/bugs/step/bug31301_2
tests/bugs/step/bug31485
tests/bugs/step/bug31617
tests/de_mesh/shape_write_stl/B1

index a4357c7874e193799f469dd643996dfd947b2870..6dc9cebb19a89ffea55c21a2711c90241805c48b 100644 (file)
@@ -1,5 +1,7 @@
 testreadstep [locate_data_file bug31301.stp] s
-testwritestep bug31301_1.stp s
-testreadstep bug31301_1.stp s1
+set aTmpFile "$imagedir/${casename}.stp"
+testwritestep "$aTmpFile" s
+testreadstep  "$aTmpFile" s1
+file delete   "$aTmpFile"
 checkshape s1 f
-checkmaxtol s1 -ref 0.0078
\ No newline at end of file
+checkmaxtol s1 -ref 0.0078
index df99f055d1b24f752ebf6f535ec4fa5cdf342bd6..7afa9960f142f400531d279e2de486c0dffa852d 100644 (file)
@@ -1,5 +1,7 @@
 restore  [locate_data_file bug31301_2.brep] s
-testwritestep bug31301_1.stp s
-testreadstep bug31301_1.stp s1
+set aTmpFile "$imagedir/${casename}.stp"
+testwritestep "$aTmpFile" s
+testreadstep  "$aTmpFile" s1
+file delete   "$aTmpFile"
 checkshape s1 f
-checkmaxtol s1 -ref 0.000247
\ No newline at end of file
+checkmaxtol s1 -ref 0.000247
index db3cc1826eba4b248f285753f792e9040340a0a3..27d3538ab2dd8ec739b45b7fd58b79a531195d0a 100644 (file)
@@ -7,9 +7,10 @@ brestore [locate_data_file bug31485.brep] a
 
 param write.step.nonmanifold 1
 
-testwritestep comp_nonmanifold.step a
-testreadstep comp_nonmanifold.step result
+set aTmpFile "$imagedir/${casename}.step"
+testwritestep "$aTmpFile" a
+testreadstep  "$aTmpFile" result
+file delete   "$aTmpFile"
 
 checkshape result
-
 checknbshapes result -face 3
index b3ba1e2fed5ecf559392c28f6998d288c0f6494e..1724d5d4421543fe21ce2a013b016fd8abb33188 100644 (file)
@@ -7,9 +7,10 @@ brestore [locate_data_file bug31617.brep] a
 
 param write.step.nonmanifold 1
 
-testwritestep comp_nonmanifold.step a
-testreadstep comp_nonmanifold.step result
+set aTmpFile "$imagedir/${casename}.step"
+testwritestep "$aTmpFile" a
+testreadstep  "$aTmpFile" result
+file delete   "$aTmpFile"
 
 checkshape result
-
 checknbshapes result -ref [lrange [nbshapes a] 11 16]
index 2747c6ddc8d7f9f1353ad0e554bd64b8cdd0df25..4ecf0c097a66aae89d80916bf6cb6024329bc258 100644 (file)
@@ -1,7 +1,9 @@
 sphere s 10
 tessellate result s 100 100
 XProgress +t
-set out [writestl result s.stl]
+set aTmpFile "$imagedir/${casename}.stl"
+set out [writestl result "$aTmpFile"]
+file delete "$aTmpFile"
 
 set expected {
   {Progress: 0%}