Skip to content

Commit

Permalink
add a way to run the root log funciton separately
Browse files Browse the repository at this point in the history
  • Loading branch information
asamalik committed May 23, 2024
1 parent cc436b7 commit f3996c6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test_root_log_function.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from feedback_pipeline import Analyzer
import urllib

# This is a starting point for a test of the function parsing root logs.
# Set the url below to any root log, and then you can see what it detected.

root_log_url = "https://kojipkgs.fedoraproject.org//packages/gstreamer1-vaapi/1.22.9/1.fc39/data/logs/x86_64/root.log"

with urllib.request.urlopen(root_log_url) as response:
root_log_data = response.read()
root_log_contents = root_log_data.decode('utf-8')

required_pkg_names = Analyzer._get_build_deps_from_a_root_log(None, root_log_contents)

print(required_pkg_names)

0 comments on commit f3996c6

Please sign in to comment.