View Issue Details

IDProjectCategoryView StatusLast Update
0029123Open CASCADEOCCT:Testspublic2022-10-24 10:43
Reporterkgv Assigned Tobugmaster  
PrioritylowSeverityminor 
Status assignedResolutionopen 
PlatformWindowsOSVC++ 2010 
Product Version7.1.0 
Target Version7.8.0 
Summary0029123: Tests - test and testgrid fail in case if OCCT is installed into location with spaces
DescriptionTrying to launch test with OCCT being installed into path containing spaces results in failure.
Steps To Reproduce- Move OCCT into location with spaces, e.g. "C:/open cascade 7.2.0/"
- Start draw.bat
- Run some test, e.g. "test v3d glsl gouraud_spot1 1"
Result:
> wrong # args: should be "_run_test scriptsdir group gridname casefile echo"

- Run testgrid
Result:
CASE demo draw binpersist_1: FAILED (no final message is found)
Draw[1]> couldn't read file "C:/workssd/Develop/Projects/occt/amd_occt": no such file or directory
Draw[2]> 
TagsNo tags attached.
Test case numberNot needed

Activities

apn

2019-07-16 22:17

administrator   ~0085683

Problem is caused by uplevel _run_test $dir $group $gridname $casefile $echo in proc test.
Uplevel divides dir and casefile variables into many parts using spaces.

uplevel [list _run_test $dir $group $gridname $casefile $echo] - doesn't work (dont know why).

Instead of proc _run_test {scriptsdir group gridname casefile echo} it's possible to use:
_run_test {args} {
    set groupname [lindex $args 0]
    set gridname [lindex $args 1]
    set casefile [lindex $args 2]
    set echo [lindex $args 3]
    set dirname ""
    foreach e1 [lrange $args 4 end] {
        set dirname "$dirname $e1"
    }
    ...
}
Also it's needed to modify casefile (e.g. use casename).
More detailed investigation is needed.

Issue History

Date Modified Username Field Change
2017-09-19 10:39 kgv New Issue
2017-09-19 10:39 kgv Assigned To => apn
2017-09-19 10:39 kgv Priority normal => low
2017-09-19 10:53 kgv Steps to Reproduce Updated
2019-07-16 22:17 apn Note Added: 0085683
2019-07-16 22:17 apn Test case number => Not needed
2019-07-16 22:17 apn Status new => assigned
2019-07-16 22:17 apn Target Version 7.4.0 => 7.5.0
2020-09-11 17:01 utverdov Assigned To apn => inv
2020-09-11 17:05 utverdov Target Version 7.5.0 => 7.6.0
2020-09-11 17:08 bugmaster Assigned To inv => bugmaster
2021-09-03 14:13 bugmaster Target Version 7.6.0 => 7.7.0
2022-10-24 10:43 szy Target Version 7.7.0 => 7.8.0