Skip to content

Commit

Permalink
Pbm aarch64 (#77)
Browse files Browse the repository at this point in the history
* PBM added possibilty to run tests on ARM

* Skip test based on cpu arch
  • Loading branch information
olexandr-havryliak authored Sep 4, 2023
1 parent 0cd892a commit 08848ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pbm-functional/pytest/Dockerfile-pykmip
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine
USER root
RUN apk add --no-cache python3 py-pip bash git openssl && cd ~ && \
RUN apk add --no-cache python3 python3-dev libffi-dev py-pip build-base bash git openssl && cd ~ && \
git clone https://github.com/OpenVPN/easy-rsa.git && \
cd easy-rsa/easyrsa3/ && \
./easyrsa init-pki && \
Expand Down
3 changes: 3 additions & 0 deletions pbm-functional/pytest/test_PBM-1058_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import time
import os
import docker
import platform

from datetime import datetime
from cluster import Cluster
Expand All @@ -26,6 +27,8 @@ def config():

@pytest.fixture(scope="package")
def cluster(config):
if platform.machine() != 'x86_64':
pytest.skip("Unsupported architecture")
return Cluster(config,mongod_datadir="/var/lib/mongo/")

@pytest.fixture(scope="function")
Expand Down

0 comments on commit 08848ba

Please sign in to comment.