Skip to content

Commit

Permalink
fix condor_submit_dag test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmengel committed Apr 12, 2024
1 parent c116636 commit bde3f3e
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 bde3f3e

Please sign in to comment.