Satya Deep Maheshwari created SLING-4886:
--------------------------------------------

             Summary: Testing tools bundles installer fails if there are no 
bundles to install
                 Key: SLING-4886
                 URL: https://issues.apache.org/jira/browse/SLING-4886
             Project: Sling
          Issue Type: Bug
          Components: Testing
            Reporter: Satya Deep Maheshwari
            Priority: Minor


Background:
org.apache.sling.testing.tools.sling.BundlesInstaller.installBundles is invoked 
by org.apache.sling.testing.tools.sling.SlingTestBase.installAdditionalBundles 
for installing any additional bundles which may be necessary while running a 
test sling instance for some integration tests.

Problem:
The problem with BundlesInstaller.installBundles is that it fails if there are 
no bundles to install and hence the integration tests fail. 

Expectation:
BundlesInstaller.installBundles should not fail if there are no bundles to 
install. It should just be a no-op.

Fix:
The problem is with a log message in this method which assumes that the bundles 
list will not be empty. Also the log text seems to incorrectly assume that the 
list contains bundles' folder path while it actually contains the bundle list.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to