<commit_before>#!/usr/bin/env bats

load helpers

@test "overlay specific level" {
  if test -o "$BUILDAH_ISOLATION" = "rootless" ; then
    skip "BUILDAH_ISOLATION = $BUILDAH_ISOLATION"
  fi
  image=alpine
  mkdir ${TESTDIR}/lower
  touch ${TESTDIR}/lower/foo

cid=$(buildah --debug=false from -v ${TESTDIR}/lower:/lower:O --quiet --signature-policy ${TESTSDIR}/policy.json $image)

  # This should succeed
  run_buildah --debug=false run $cid ls /lower/foo

  # Create and remove content in the overlay directory, should succeed
  run_buildah --debug=false run $cid touch /lower/bar<commit_msg>tests: enable overlay tests for rootless<commit_after>#!/usr/bin/env bats

load helpers

@test "overlay specific level" {
  if test \! -e /usr/bin/fuse-overlays -a  "$BUILDAH_ISOLATION" = "rootless"; then
    skip "BUILDAH_ISOLATION = $BUILDAH_ISOLATION" and no /usr/bin/fuse-overlayfs present
  fi
  image=alpine
  mkdir ${TESTDIR}/lower
  touch ${TESTDIR}/lower/foo

cid=$(buildah --debug=false from -v ${TESTDIR}/lower:/lower:O --quiet --signature-policy ${TESTSDIR}/policy.json $image)

  # This should succeed
  run_buildah --debug=false run $cid ls /lower/foo

  # Create and remove content in the overlay directory, should succeed
  run_buildah --debug=false run $cid touch /lower/bar
{'fraction_non_alphanumeric': 0.1258741258741259, 'fraction_numerical': 0.0, 'mean_word_length': 4.050980392156863, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6156989', 'n_tokens_mistral': 455, 'n_tokens_neox': 439, 'n_words': 124}