mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 12:14:18 +00:00
rename to clickhouse_fuzzer, fix
This commit is contained in:
parent
5c3e9efdaf
commit
f2b741202d
@ -1,5 +1,8 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
# rename clickhouse
|
||||
mv $OUT/clickhouse $OUT/clickhouse_fuzzer
|
||||
|
||||
# copy fuzzer options and dictionaries
|
||||
cp $SRC/tests/fuzz/*.dict $OUT/
|
||||
cp $SRC/tests/fuzz/*.options $OUT/
|
||||
|
@ -113,7 +113,7 @@ def run_fuzzer(fuzzer: str, timeout: int):
|
||||
stopwatch = Stopwatch()
|
||||
try:
|
||||
with open(out_path, "wb") as out:
|
||||
result = subprocess.run(
|
||||
subprocess.run(
|
||||
cmd_line,
|
||||
stderr=out,
|
||||
stdout=subprocess.DEVNULL,
|
||||
@ -123,12 +123,12 @@ def run_fuzzer(fuzzer: str, timeout: int):
|
||||
errors="replace",
|
||||
timeout=timeout,
|
||||
)
|
||||
except subprocess.CalledProcessError as e:
|
||||
except subprocess.CalledProcessError:
|
||||
with open(status_path, "w", encoding="utf-8") as status:
|
||||
status.write(
|
||||
f"FAIL\n{stopwatch.start_time_str}\n{stopwatch.duration_seconds}\n"
|
||||
)
|
||||
except subprocess.TimeoutExpired as e:
|
||||
except subprocess.TimeoutExpired:
|
||||
kill_fuzzer(fuzzer)
|
||||
sleep(10)
|
||||
with open(status_path, "w", encoding="utf-8") as status:
|
||||
|
Loading…
Reference in New Issue
Block a user