HomePhorge

Maint: made upstart tests more robust.
99f4d2fe6c3eUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Maint: made upstart tests more robust.

The tests for the upstart provider were attempting to stub
Process::Status.exitstatus. However, this doesn't work (presumably
because Process::Status is implemented in C). As a result, the
upstart spec tests were failing if the most recent exit code was
nonzero. Changed the tests so that instead of stubbing
Process::Status.exitstatus to return zero, they execute a command that
is known to succeed (true).

Paired-with: Jesse Wolfe <jesse@puppetlabs.com>

Details

Provenance
Paul Berry <paul@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU3d2fbf604f99: Merge branch 'ticket/2.6.x/5261' into next
Branches
Unknown
Tags
Unknown

Event Timeline

Paul Berry <paul@puppetlabs.com> committed rPU99f4d2fe6c3e: Maint: made upstart tests more robust. (authored by Paul Berry <paul@puppetlabs.com>).Nov 23 2010, 10:25 PM