Skip to content

Commit 1575c49

Browse files
committed
fixup! Add custom action and unified Linux build
1 parent 9ac755f commit 1575c49

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

scripts/runner.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,14 @@ def run_one(name, cmd, logname, env, args):
7171

7272
print("::group::Run {}".format(name), flush=True)
7373
print("Run: {}".format(cmd), flush=True)
74+
print("Env: {}".format(env), flush=True)
7475
print("Log: {}".format(logname), flush=True)
7576

7677
status = 0
7778
logfd = None
7879
try:
7980
logfd = open(logname, 'wb')
80-
proc = Popen(cmd, stdout=PIPE, stderr=STDOUT, cwd=args.workdir, env=(dict(os.environ) | env))
81+
proc = Popen(cmd, stdout=PIPE, stderr=STDOUT, cwd=args.workdir, env=(os.environ | env))
8182
read_process(proc, args.timeout, args.verbose, logfd)
8283
proc.wait()
8384
status = proc.returncode
@@ -156,7 +157,7 @@ def run_one(name, cmd, logname, env, args):
156157
break # Note: only one exe change
157158
# Change environment
158159
if opt_node["env"]:
159-
for k, v in opt_node["exe"].items():
160+
for k, v in opt_node["env"].items():
160161
if k in name:
161162
env |= v
162163

scripts/test-plan.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"suites": {
3-
"smoke": ["opencv_test_ml", "opencv_test_videoio", "opencv_test_highgui", "opencv_perf_photo"],
3+
"smoke": ["opencv_test_dnn_classic", "opencv_test_ml", "opencv_test_videoio", "opencv_test_highgui", "opencv_perf_photo"],
44
"linux-4.x": [
55
"opencv_test_calib3d",
66
"opencv_test_core",
@@ -96,7 +96,7 @@
9696
},
9797
"env": {
9898
"opencv_test_dnn_classic": {
99-
"OPENCV_FORCE_DNN_ENGINE": 1
99+
"OPENCV_FORCE_DNN_ENGINE": "1"
100100
}
101101
}
102102
}

0 commit comments

Comments
 (0)