HomePhorge

maint: Make it easier to test the service provider
060810e9affcUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

maint: Make it easier to test the service provider

Before the change the directories to search for initscripts (e.g.
/etc/init.d, /sbin/init.d) were stored in a class variable that was
calculated at load time. This way stubbing operatingsystem in test
cases did not change the value of @defpath.

Turning the class variable in a class method. This way stubbing
operatingsystem does change the result when querying defpath. The fact
lookup should be relativly cheap so we do not have to cache the
value in a class variable.

Details

Provenance
Stefan Schulte <stefan.schulte@taunusstein.net>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU0788ea2d3630: (#14615) Exclude helperscripts in gentoo service provider
Branches
Unknown
Tags
Unknown

Event Timeline

Stefan Schulte <stefan.schulte@taunusstein.net> committed rPU060810e9affc: maint: Make it easier to test the service provider (authored by Stefan Schulte <stefan.schulte@taunusstein.net>).May 31 2012, 12:52 AM