Skip to content

Commit

Permalink
mononoke/integration tests: handle case-sensitive related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspiatkowski committed Sep 8, 2020
1 parent 065d80b commit 1e6ced5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions eden/mononoke/tests/integration/run_tests_getdeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from glob import iglob
from os.path import abspath, basename, dirname, join
from pathlib import Path
from sys import platform


parser = argparse.ArgumentParser(
Expand Down Expand Up @@ -73,7 +74,6 @@
excluded_tests = {
"test-backsync-forever.t", # Unknown issue
"test-blobimport-lfs.t", # Timed out
"test-blobimport.t", # Case insensitivity of paths in MacOS
"test-bookmarks-filler.t", # Probably missing binary
"test-cmd-manual-scrub.t", # Just wrong outout
"test-edenapi-server-commit-location-to-hash.t", # Missing eden/scm's commands
Expand Down Expand Up @@ -108,7 +108,6 @@
"test-mononoke-hg-sync-job-generate-bundles-lfs-verification.t", # Timed out
"test-mononoke-hg-sync-job-generate-bundles-lfs.t", # Timed out
"test-push-protocol-lfs.t", # Timed out
"test-pushrebase-block-casefolding.t", # Most likely MacOS path case insensitivity
"test-remotefilelog-lfs.t", # Timed out
"test-scs-blame.t", # Missing SCS_SERVER
"test-scs-common-base.t", # Missing SCS_SERVER
Expand All @@ -124,6 +123,11 @@
"test-unbundle-replay-hg-recording.t", # Returns different data in OSS
}

if platform == "darwin":
excluded_tests.update({
"test-pushrebase-block-casefolding.t", # MacOS is path case insensitive
})

tests = [
t
for t in (
Expand Down
8 changes: 4 additions & 4 deletions eden/mononoke/tests/integration/test-blobimport.t
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@

# Capitals and underscores in a filename. Total len of the filename is 253
# 253 because: 253 + len(".i") = 255 (max filename in UNIX system)
$ UNDERSCORES=`printf '_%.0s' {1..123}`
$ UNDERSCORES=`printf '_%.0s' {1..122}`
$ CAPITALS=`printf 'A%.0s' {1..130}`
$ echo s > "$UNDERSCORES$CAPITALS"
$ echo s > "b$UNDERSCORES$CAPITALS"
$ hg commit -Aqm "underscores, capitals"

# Capitals, lowercase and underscores in a filename. Total len of the filename
# is 253
# 253 because: 253 + len(".i") = 255 (max filename in UNIX system)
$ UNDERSCORES=`printf '_%.0s' {1..123}`
$ UNDERSCORES=`printf '_%.0s' {1..122}`
$ CAPITALS=`printf 'A%.0s' {1..100}`
$ LOWERCASE=`printf 'a%.0s' {1..30}`
$ echo s > "$UNDERSCORES$CAPITALS$LOWERCASE"
$ echo s > "c$UNDERSCORES$CAPITALS$LOWERCASE"
$ hg commit -Aqm "underscores, capitals, lowercase"

$ setup_mononoke_config
Expand Down

0 comments on commit 1e6ced5

Please sign in to comment.