File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -350,3 +350,38 @@ def run(
350
350
timeout = timeout ,
351
351
check = check ,
352
352
)
353
+
354
+
355
+ #
356
+ # Composable mixins
357
+ #
358
+
359
+
360
+ class TeeStdoutMixin :
361
+ def stdout_callback (self , * args , ** kwargs ):
362
+ raise NotImplementedError
363
+
364
+ def get_stdout_callback (self ):
365
+ return self .stdout_callback
366
+
367
+
368
+ class TeeStderrMixin :
369
+ def stderr_callback (self , * args , ** kwargs ):
370
+ raise NotImplementedError
371
+
372
+ def get_stderr_callback (self ):
373
+ return self .stderr_callback
374
+
375
+
376
+ class CaptureStdoutMixin :
377
+ """Logs all stdout
378
+
379
+ Compatible with TeeStdout. Makes it possible to stream output and look back.
380
+ """
381
+
382
+
383
+ class CaptureStderrMixin :
384
+ """Logs all stderr
385
+
386
+ Compatible with TeeStderr. Makes it possible to stream output and look back.
387
+ """
You can’t perform that action at this time.
0 commit comments