File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,8 @@ def is_git_repo():
254
254
return False
255
255
256
256
if not is_git_repo () and shared .options .auto_initial_contents :
257
- print ('Warning: The current directory is not a git repository, so you cannot use "--auto-initial-contents". Using the manually selected contents.\n ' )
257
+ print ('Warning: The current directory is not a git repository, ' +
258
+ 'so not automatically selecting initial contents.' )
258
259
shared .options .auto_initial_contents = False
259
260
260
261
print ('- Perenially-important initial contents:' )
@@ -1765,8 +1766,8 @@ def get_random_opts():
1765
1766
shutil .copyfile ('a.wasm' , original_wasm )
1766
1767
# write out a useful reduce.sh
1767
1768
auto_init = ''
1768
- if shared .options .auto_initial_contents :
1769
- auto_init = '--auto-initial-contents'
1769
+ if not shared .options .auto_initial_contents :
1770
+ auto_init = '--no- auto-initial-contents'
1770
1771
with open ('reduce.sh' , 'w' ) as reduce_sh :
1771
1772
reduce_sh .write ('''\
1772
1773
# check the input is even a valid wasm file
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ def parse_args(args):
96
96
# TODO Allow each script to inherit the default set of options and add its
97
97
# own custom options on top of that
98
98
parser .add_argument (
99
- '--auto-initial-contents' , dest = 'auto_initial_contents' ,
100
- action = 'store_true ' , default = False ,
99
+ '--no- auto-initial-contents' , dest = 'auto_initial_contents' ,
100
+ action = 'store_false ' , default = True ,
101
101
help = 'Select important initial contents automaticaly in fuzzer. '
102
102
'Default: disabled.' )
103
103
You can’t perform that action at this time.
0 commit comments