sapling/eden/integration/nfs_test.py
Katie Mancini 8e1a30a2a9 nfs: run most integration tests on edenfs
Summary:
Currently we have limited test coverage of the NFS code. Let's start running
our integration tests on NFS mounts. We already duplicate tests to run them on
both Git and Hg repos using a python decorator. We can update this decorator to
run a copy of tests on an nfs mount.

This covers most of the tests, but a few tests do not use this decorator. See next
change.

Note some tests are currently broken, so I am using the same skip list functionality
we use for windows so we use a uniform framework.

Reviewed By: xavierd

Differential Revision: D27874662

fbshipit-source-id: c7d425830b691e395b5228d0e0f797f67987b4ec
2021-04-23 13:30:17 -07:00

26 lines
745 B
Python

#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
# pyre-strict
from typing import Optional, Dict, List
from .lib import testcase
@testcase.eden_repo_test
class NfsTest(testcase.EdenRepoTest):
def populate_repo(self) -> None:
self.repo.write_file("hello", "hola\n")
self.repo.commit("Initial commit.")
def edenfs_logging_settings(self) -> Optional[Dict[str, str]]:
return {"eden.fs.nfs": "DBG7", "eden.strace": "DBG7"}
def test_clone(self) -> None:
clone_dir = self.make_temporary_directory()
self.eden.clone(self.repo.path, clone_dir, nfs=True)