<commit_before>Setup:

  $ . $TESTDIR/setup.sh
  $ if [ ! -e "/dev/shm" ]; then
  $ echo "No /dev/shm. Skipping test."
  $ exit 80
  $ fi
  $ TEST_TMPDIR=`mktemp -d --tmpdir=/dev/shm ag_test.XXX`
  $ echo "blah" > $TEST_TMPDIR/blah.txt
  $ ln -s $TEST_TMPDIR other_device

Should not descend into /dev/shm symlink when --one-device specified:

  $ ag -f --one-device blah .<commit_msg>Make this test setup a multi-line command so that it passes on Linux and is skipped on other OSes.<commit_after>Setup:

  $ . $TESTDIR/setup.sh
  > if [ ! -e "/dev/shm" ]; then
  > echo "No /dev/shm. Skipping test."
  > exit 80
  > fi
  $ TEST_TMPDIR=`mktemp -d --tmpdir=/dev/shm ag_test.XXX`
  $ echo "blah" > $TEST_TMPDIR/blah.txt
  $ ln -s $TEST_TMPDIR other_device

Should not descend into /dev/shm symlink when --one-device specified:

  $ ag -f --one-device blah .
{'fraction_non_alphanumeric': 0.14502923976608187, 'fraction_numerical': 0.004678362573099415, 'mean_word_length': 2.8044444444444445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6300259', 'n_tokens_mistral': 349, 'n_tokens_neox': 335, 'n_words': 94}