Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Task autotest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
Task autotest
Commits
b3f581c6
Commit
b3f581c6
authored
1 year ago
by
Daniel Skýpala
Browse files
Options
Downloads
Patches
Plain Diff
Test: Fix wrong path
yet again
parent
5812accc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
task_autotest/test.py
+7
-3
7 additions, 3 deletions
task_autotest/test.py
with
7 additions
and
3 deletions
task_autotest/test.py
+
7
−
3
View file @
b3f581c6
...
...
@@ -20,17 +20,21 @@ def test_task_commit(task_path: str, commit_hash: str, workdir="_test") -> None:
with
open
(
outdir
+
"
time
"
,
"
w
"
)
as
f
:
f
.
write
(
str
(
int
(
start_time
)))
task_path
=
os
.
path
.
join
(
config
.
REPO_DIR
,
workdir
,
task_path
)
def
run_pisek
(
args
,
output
):
print
(
"
Run pisek
"
)
with
open
(
os
.
path
.
join
(
outdir
,
output
),
"
w
"
)
as
out
:
re
turn
subprocess
.
run
(
re
s
=
subprocess
.
run
(
[
"
pisek
"
]
+
args
,
stdout
=
out
,
stderr
=
subprocess
.
STDOUT
,
text
=
True
,
cwd
=
os
.
path
.
join
(
config
.
REPO_DIR
,
workdir
,
task_path
),
cwd
=
task_path
)
print
(
"
Finished running pisek
"
)
return
res
lock
=
os
.
path
.
join
(
outdir
,
"
.pisek_lock
"
)
lock
=
os
.
path
.
join
(
task_path
,
"
.pisek_lock
"
)
if
os
.
path
.
exists
(
lock
):
os
.
unlink
(
lock
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment