[CRIU] [PATCH 0/4] add join-ns option to criu restore

Dengguangxing dengguangxing at huawei.com
Wed Apr 6 03:43:04 PDT 2016



在 2016/4/6 17:55, Pavel Emelyanov 写道:
> Yup, applied to criu-dev, thanks.
> 
> I have a question regarding patch #4 (with test):
> 
>> @@ -1226,6 +1231,14 @@ def run_tests(opts):
>>  		print "Parallel launch with freezer not supported"
>>  		opts['parallel'] = None
>>
>> +	if opts['join_ns']:
>> +		print "[WARNING] Option --join-ns will skip ns and uns flavors, and some socket related tests."
>> +		r = re.compile('^(?!.*sock).*$')
>> +		torun = filter(lambda x: r.match(x), torun)
>> +		opts['keep_going'] = True
>> +		run_all = True
>> +		subprocess.Popen(["ip", "netns", "add", "zdtm_netns"])
>> +
>>  	l = launcher(opts, len(torun))
>>  	try:
>>  		for t in torun:
> 
> Why do you exclude all sock tests from --join-ns run?
> 
join-ns zdtm run with network namespace, and sock tests would fail because the former
networknamespace is deprecated.



More information about the CRIU mailing list