Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfvc committed Sep 13, 2023
1 parent 73a0900 commit 1f00444
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/htcondor-collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Submit test job
run: |
docker exec -u submituser -w /home/submituser htcondor-submit-1 \
bash -c "echo -e \"executable=/bin/sleep\narguments=2\n+VoName=testgroup\nqueue\" > job \
bash -c "echo -e \"executable=/bin/sleep\narguments=2\n+VoName=\\\"testgroup\\\"\nqueue\" > job \
&& condor_submit job"
- name: Wait for job and collector
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ def _generate_components(self, job: dict) -> List[Component]:
components = []
for component in self.config.components:
amount = get_value(component, job)
self.logger.debug(
f"Got amount {amount!r} ({type(amount)}) for component {component!r}."
)
if amount is not None:
try:
# AUDITOR expects int-values for components
Expand All @@ -206,7 +209,7 @@ def _generate_components(self, job: dict) -> List[Component]:
components.append(comp)
else:
self.logger.warning(
f"Could not get value for component {component['name']!r} "
f"Could not get value for component {component['name']!r} ({component!r}) "
f"for job {job['GlobalJobId']!r}."
)
raise ValueError
Expand Down

0 comments on commit 1f00444

Please sign in to comment.