From e7f9037976b1687fcd79ec029e8cb20d35143ced Mon Sep 17 00:00:00 2001 From: Denis Zheleztsov Date: Thu, 10 Nov 2016 12:17:31 +0300 Subject: [PATCH] remove t --- t/b.sh | 10 ---------- t/f.py | 34 ---------------------------------- t/txt | 1 - 3 files changed, 45 deletions(-) delete mode 100755 t/b.sh delete mode 100755 t/f.py delete mode 100644 t/txt diff --git a/t/b.sh b/t/b.sh deleted file mode 100755 index ce193e3..0000000 --- a/t/b.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -set -e - -echo $$ > /var/tmp/surok.spid - -while true; do - cat txt - sleep 2 -done diff --git a/t/f.py b/t/f.py deleted file mode 100755 index a5be042..0000000 --- a/t/f.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/python3 - -import os -import subprocess -from time import sleep -import sys - - -def child(): - bashCommand = "./b.sh" - process = subprocess.Popen(bashCommand, stdout=sys.stdout) - # output = process.communicate() - - return process - - -def parent(): - newpid = os.fork() - if newpid == 0: - child() - else: - pids = (os.getpid(), newpid) - print("parent: %d, child: %d\n" % pids) - - c = 0 - while c < 5: - sleep(2) - p = open('/var/tmp/surok.spid') - cpid = p.read() - p.close() - print(cpid, c) - c = c + 1 - -parent() diff --git a/t/txt b/t/txt deleted file mode 100644 index d86bac9..0000000 --- a/t/txt +++ /dev/null @@ -1 +0,0 @@ -OK