Git Product home page Git Product logo

paf's People

Contributors

svlad-90 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

paf's Issues

[ENHANCEMENT] Add new Task methods - 'fail' and 'assertion'

Sometimes I need to fail execution of the task from within the task itself, e.g. when I've got some critical status from the subsequent sub-process.

It would be great to support additional "fail" and "assertion" calls, which would allow doing that.

Fix minor issues

  • Add "substitute_parameters" method to the Task class, in order to allow the user to substitute parameters without running the command
  • Fix issue with wrongly printed "{{" and "}}" strings after the command substitution

[LOGGING] The logs of the sub-process are fired to the log-file in a weird way

It seems like QEMU output is printed to the file by the PAF without waiting for the 'new-line' character:

2022-08-23 18:20:57,967,967 INFO [
2022-08-23 18:20:57,967,967 INFO     1.39
2022-08-23 18:20:57,967,967 INFO 4525] 
2022-08-23 18:20:57,967,967 INFO init: P
2022-08-23 18:20:57,967,967 INFO arsing
2022-08-23 18:20:57,967,967 INFO  file /
2022-08-23 18:20:57,967,967 INFO vendor/
2022-08-23 18:20:57,967,967 INFO etc/ini
2022-08-23 18:20:57,967,967 INFO t/memtr
2022-08-23 18:20:57,967,967 INFO ack-def
2022-08-23 18:20:57,967,967 INFO ault.rc
2022-08-23 18:20:57,967,967 INFO ...
2022-08-23 18:20:57,967,967 INFO [ 
2022-08-23 18:20:57,967,967 INFO    1.395
2022-08-23 18:20:57,967,967 INFO 107] ini
2022-08-23 18:20:57,967,967 INFO t: Parsi
2022-08-23 18:20:57,968,968 INFO ng file
2022-08-23 18:20:57,968,968 INFO  /vendo
2022-08-23 18:20:57,968,968 INFO r/etc/
2022-08-23 18:20:57,968,968 INFO init/
2022-08-23 18:20:57,968,968 INFO power

The expected output would be:

2022-08-24 11:44:03,775,775 INFO [   36.996703] init: Service 'bt_vhci_forwarder' (pid 2890) exited with status 6
2022-08-24 11:44:03,778,778 INFO [   36.998763] init: Sending signal 9 to service 'bt_vhci_forwarder' (pid 2890) process group...
2022-08-24 11:44:03,780,780 INFO [   37.001561] libprocessgroup: Successfully killed process cgroup uid 1002 pid 2890 in 0ms
2022-08-24 11:44:05,162,162 INFO [   38.385197] logd: logdr: UID=1001002 GID=1001002 PID=2894 n tail=0 logMask=8 pid=2843 start=0ns deadline=0ns
2022-08-24 11:44:05,165,165 INFO [   38.387868] logd: logdr: UID=1001002 GID=1001002 PID=2894 n tail=0 logMask=1 pid=2843 start=0ns deadline=0ns

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.