File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
test/UnitTest/SourceControl/Git Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
Class UnitTest .SourceControl .Git .ImportAll Extends UnitTest .SourceControl .Git .AbstractTest
2
2
{
3
3
4
+ Parameter WebAppName As STRING = " /csp/git/unittest/xsl" ;
5
+
4
6
Property WebAppPath As %String ;
5
7
6
8
Method %OnNew (initvalue ) As %Status
@@ -10,11 +12,11 @@ Method %OnNew(initvalue) As %Status
10
12
/// add mappings for MAC and CSP
11
13
Set settings = ##class (SourceControl.Git.Settings ).%New ()
12
14
Set settings .Mappings (" MAC" ," *" )=" rtn/"
13
- Set settings .Mappings (" /CSP/" ," /csp/git/unittest/xsl " )=" csp/git/unittest/xsl"
15
+ Set settings .Mappings (" /CSP/" ,..#WebAppName )=" csp/git/unittest/xsl"
14
16
$$$ThrowOnError(settings .%Save ())
15
17
set ..WebAppPath = ##class (%File ).TempFilename ()_" d"
16
18
do ##class (%File ).CreateDirectoryChain (..WebAppPath )
17
- do ..CreateTestWebApp (" /csp/git/unittest/xsl " , ..WebAppPath )
19
+ do ..CreateTestWebApp (..#WebAppName , ..WebAppPath )
18
20
return $$$OK
19
21
}
20
22
@@ -43,7 +45,7 @@ ClassMethod DeleteTestWebApp(name)
43
45
44
46
Method %OnClose () As %Status [ Private , ServerOnly = 1 ]
45
47
{
46
- do ..DeleteTestWebApp (" /csp/git/unittest/xsl " )
48
+ do ..DeleteTestWebApp (..#WebAppName )
47
49
do ##class (%File ).RemoveDirectoryTree (..WebAppPath )
48
50
quit ##super ()
49
51
}
You can’t perform that action at this time.
0 commit comments