Skip to content

Commit

Permalink
Merge pull request #564 from fermitools/condor_submit_dag_fix2
Browse files Browse the repository at this point in the history
fix condor_submit_dag test
  • Loading branch information
shreyb authored Apr 20, 2024
2 parents 231f245 + bde3f3e commit 9f3dda6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_submit_wait_int.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ def condor_dag_launch(dagfile, extra=""):
line = subjin.readline()
line = line.strip().replace("subject= ", "")
os.environ["DN"] = line
os.environ["UID"] = str(os.getuid())
if os.path.exists(f"{dagfile}.condor.sub"):
os.unlink(f"{dagfile}.condor.sub")
with dircontext(os.path.dirname(__file__) + "/data/condor_submit_dag"):
Expand All @@ -240,9 +239,10 @@ def condor_dag_launch(dagfile, extra=""):

@pytest.mark.integration
def test_condor_submit_dag1(samdev):
condor_dag_launch(
"dataset.dag", f"-append environment=SAM_PROJECT=proj_{int(time.time())}"
)
os.environ["SAM_PROJECT"] = "p" + str(int(time.time()))
os.environ["UID"] = str(os.getuid())
os.environ["USER"] = os.environ.get("USER", "sam")
condor_dag_launch("dataset.dag", f"-append getenv=UID,SAM_PROJECT,USER")


def lookaround_launch(extra, verify_files=""):
Expand Down

0 comments on commit 9f3dda6

Please sign in to comment.