Skip to content
Browse files

Fix for #179 index.cfm broken

Reverted back to using the metadata name key instead of fullname since OpenBD does not support it.

Added a statement to check the length of the paths before attempting to trim the path.

Defaulting to using mxunit. as the default component path.
  • Loading branch information...
1 parent c3df99c commit 2c5fb22f52530bdf980661691fe5b1f8d8022e4f Zoramite committed Feb 24, 2010
Showing with 7 additions and 1 deletion.
  1. +7 −1 index.cfm
View
8 index.cfm
@@ -52,7 +52,13 @@
<cfset testSuiteMeta = getMetaData(testSuite) />
<!--- Determine the component path to use --->
- <cfset componentPath = left(testSuiteMeta.fullname, len(testSuiteMeta.fullname) - len(testSuitePath)) />
+ <cfif len(testSuiteMeta.name) gt len(testSuitePath)>
+ <!--- Try to dynamically figure out the component path to the current directory --->
+ <cfset componentPath = left(testSuiteMeta.name, len(testSuiteMeta.name) - len(testSuitePath)) />
+ <cfelse>
+ <!--- Default to using the mxunit as the component path --->
+ <cfset componentPath = 'mxunit.' />
+ </cfif>
<cfset testSuite.addAll("#componentPath#MXUnitInstallTest") />

0 comments on commit 2c5fb22

Please sign in to comment.
Something went wrong with that request. Please try again.