1# Check that the environment variable is set correctly 2# RUN: %{python} %s | FileCheck -DINDEX=1 %s 3# RUN: %{python} %s | FileCheck -DINDEX=2 %s 4 5# Python script to read the environment variable 6# and print its value 7import os 8 9llvm_profile_file = os.environ.get('LLVM_PROFILE_FILE') 10print(llvm_profile_file) 11 12# CHECK: per-test-coverage[[INDEX]].profraw 13