Skip to content

Fix wheels tests for torchaudio #1162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions test/smoke_test/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,19 @@
def get_anaconda_output_for_package(pkg_name_str):
import subprocess as sp

cmd = "conda list --explicit"
output = sp.getoutput(cmd)
for item in output.split("\n"):
if pkg_name_str in item:
return item

# Get the last line only
return f"{pkg_name_str} can't be found"
# If we are installing using conda just list package name
if installation_str.find("conda install") != -1:
cmd = "conda list --explicit"
output = sp.getoutput(cmd)
for item in output.split("\n"):
if pkg_name_str in item:
return item
return f"{pkg_name_str} can't be found"
else:
cmd = "conda list -f " + pkg_name_str
output = sp.getoutput(cmd)
# Get the last line only
return output.strip().split('\n')[-1]


def check_nightly_binaries_date() -> None:
Expand Down