> On 5 May 2023, at 11:31, Ross Burton <[email protected]> wrote: > > On 11 Apr 2023, at 16:05, Louis Rannou via lists.openembedded.org > <[email protected]> wrote: >> Create a new runner run_serial_socket which usage matches the traditional ssh >> runner. Its return status is 0 when the command succeeded or 0 when it >> failed. If an error is encountered, it raises an Exception. >> >> The previous serial runner is maintained and marked as deprecated. > > I absolutely love this because the existing run_serial has the most confusing > behaviour. However, we’re now duplicating a large chunk of code: can the old > function be implemented such that it calls the new function and adapts the > return values?
Also, for bonus points, make the old function actual spit out a DeprecationWarning with warnings.warn. Ross
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#180906): https://lists.openembedded.org/g/openembedded-core/message/180906 Mute This Topic: https://lists.openembedded.org/mt/98199478/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
