mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Install importlib-metadata=4.13.0 for all classic package upgrade tests
This commit is contained in:
parent
02d0cbe143
commit
63ca5e7e2b
1 changed files with 3 additions and 7 deletions
10
noxfile.py
10
noxfile.py
|
@ -11,7 +11,6 @@ import gzip
|
|||
import json
|
||||
import os
|
||||
import pathlib
|
||||
import platform
|
||||
import shutil
|
||||
import sqlite3
|
||||
import subprocess
|
||||
|
@ -1809,12 +1808,9 @@ def test_upgrade_pkgs(session, classic):
|
|||
]
|
||||
if classic:
|
||||
cmd_args = cmd_args + ["--classic"]
|
||||
if "amzn2" in platform.release():
|
||||
# Workaround for installing and running classic packages from 3005.1
|
||||
# on amazon linux 2. They can only run with importlib-metadata<5.0.0.
|
||||
subprocess.run(
|
||||
["pip3", "install", "importlib-metadata==4.13.0"], check=False
|
||||
)
|
||||
# Workaround for installing and running classic packages from 3005.1
|
||||
# They can only run with importlib-metadata<5.0.0.
|
||||
subprocess.run(["pip3", "install", "importlib-metadata==4.13.0"], check=False)
|
||||
try:
|
||||
_pkg_test(session, cmd_args, test_type)
|
||||
except nox.command.CommandFailed:
|
||||
|
|
Loading…
Add table
Reference in a new issue