Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanchengJiang committed Feb 23, 2025
1 parent 0b33017 commit a69494e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ def main(self):
if count % 10 == 0:
# clean the test folder
os.system(f"cd {self.test_root} && git clean -fd -e php-src -e phpt_deps -e phpt_seeds -e knowledges -e backup -e bugs -e testpaths")
os.system(f"cp {self.test_root}/backup/run-tests.php {self.php_root}/")
os.system(f"cp {self.test_root}/backup/Makefile {self.php_root}/")
os.system(f"cp {self.test_root}/backup/libtool {self.php_root}/")
self.clean()

# Run the fusion process in a separate thread
Expand Down
2 changes: 1 addition & 1 deletion reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def reduce_php(testpath, phppath, config, bug_output):
# auto generate bug report
report_template = "\nThe following code:\n\n```php\n{poc}\n```\n\nResulted in this output:\n```\n{stdouterr}\n```\n\nTo reproduce:\n```\n{config}\n```\n\nCommit:\n```\n{commit}\n```\n\nConfigurations:\n```\n{php_config}\n```\n\nOperating System:\n```\n{os}\n```\n\n*This report is automatically generated by [FlowFusion](https://github.com/php/flowfusion)*\n"

os.system("cd /home/phpfuzz/WorkSpace/flowfusion/php-src; git log -1 > /tmp/php_commit")
os.system("cd /home/phpfuzz/WorkSpace/flowfusion/php-src; git rev-parse origin/master > /tmp/php_commit")
f = open("/tmp/php_commit","r")
commit = f.read()
f.close()
Expand Down

0 comments on commit a69494e

Please sign in to comment.