Skip to content

Commit b0f8675

Browse files
authored
Disable NTP on macOS runner (robotframework#3571)
1 parent 977ad08 commit b0f8675

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

‎.github/workflows/acceptance_tests_cpython.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ jobs:
9191
sudo apt-get -y -q install xvfb scrot zip curl
9292
if: contains(matrix.os, 'ubuntu')
9393

94+
- name: Disable NTP on macOS (https://github.com/actions/virtual-environments/issues/820)
95+
run: |
96+
sudo systemsetup -setusingnetworktime off
97+
sudo rm -rf /etc/ntp.conf
98+
if: runner.os == 'macOS'
99+
94100
- name: Run acceptance tests
95101
run: |
96102
python -m pip install -r atest/requirements.txt

‎.github/workflows/unit_tests.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040
python-version: ${{ matrix.python-version }}
4141
architecture: 'x64'
4242

43+
- name: Disable NTP on macOS (https://github.com/actions/virtual-environments/issues/820)
44+
run: |
45+
sudo systemsetup -setusingnetworktime off
46+
sudo rm -rf /etc/ntp.conf
47+
if: runner.os == 'macOS'
48+
4349
- name: Run unit tests with coverage
4450
run: |
4551
python -m pip install coverage
@@ -88,6 +94,12 @@ jobs:
8894
wget -nv "http://search.maven.org/remotecontent?filepath=org/python/jython-installer/${{ matrix.jython-version }}/jython-installer-${{ matrix.jython-version }}.jar" -O jytinst.jar
8995
java -jar jytinst.jar -s -d jython/
9096
97+
- name: Disable NTP on macOS (https://github.com/actions/virtual-environments/issues/820)
98+
run: |
99+
sudo systemsetup -setusingnetworktime off
100+
sudo rm -rf /etc/ntp.conf
101+
if: runner.os == 'macOS'
102+
91103
- name: Run unit tests
92104
run: |
93105
${{ matrix.set_codepage }}

0 commit comments

Comments
 (0)