Skip to content

Commit

Permalink
tests: Remove trailing whitespace from python daemon tests
Browse files Browse the repository at this point in the history
Removes the trailing whitespace from the testing code related to
daemonizing in Python.
  • Loading branch information
ejj committed Sep 23, 2010
1 parent 998bb65 commit 9c64f23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions tests/daemon-py.at
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ AT_CHECK([kill -0 `cat pid`], [0], [], [], [kill `cat parent`])
AT_CHECK([ps -o ppid= -p `cat pid` > parentpid],
[0], [], [], [kill `cat parent`])
AT_CHECK(
[parentpid=`cat parentpid` &&
parent=`cat parent` &&
[parentpid=`cat parentpid` &&
parent=`cat parent` &&
test $parentpid = $parent],
[0], [], [], [kill `cat parent`])
# Kill the daemon process, making it look like a segfault,
Expand All @@ -50,8 +50,8 @@ AT_CHECK([cp pid newpid], [0], [], [], [kill `cat parent`])
AT_CHECK([ps -o ppid= -p `cat pid` > parentpid],
[0], [], [], [kill `cat parent`])
AT_CHECK(
[parentpid=`cat parentpid` &&
parent=`cat parent` &&
[parentpid=`cat parentpid` &&
parent=`cat parent` &&
test $parentpid = $parent],
[0], [], [], [kill `cat parent`])
# Kill the daemon process with SIGTERM, and wait for the daemon
Expand Down Expand Up @@ -79,7 +79,7 @@ AT_CLEANUP

AT_SETUP([daemon --detach --monitor - Python])
AT_SKIP_IF([test $HAVE_PYTHON = no])
m4_define([CHECK],
m4_define([CHECK],
[AT_CHECK([$1], [$2], [$3], [$4], [kill `cat daemon monitor`])])
AT_CAPTURE_FILE([daemon])
AT_CAPTURE_FILE([olddaemon])
Expand Down
6 changes: 3 additions & 3 deletions tests/test-daemon.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright (c) 2010 Nicira Networks.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down

0 comments on commit 9c64f23

Please sign in to comment.