-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a way to run the root log funciton separately
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |