Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
f58bb42d
Commit
f58bb42d
authored
May 13, 2002
by
Robert Ricci
Browse files
Added TBDebugTimeStamp calls.
parent
089ff494
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/tbprerun.in
View file @
f58bb42d
...
...
@@ -59,6 +59,7 @@ if (! -r $nsfile) {
}
print
"
Beginning pre run for
$pid
/
$eid
.
"
.
TBTimeStamp
()
.
"
\n
";
TBDebugTimeStamp
("
tbprerun started
");
if
(
!
(
$state
=
ExpState
(
$pid
,
$eid
)))
{
die
("
*** $0:
\n
"
.
...
...
@@ -91,19 +92,23 @@ sub cleanup {
# This setups virt_nodes, virt_names including all IP address calculation
# and tb-* handling.
print
"
Running parser ...
"
.
TBTimeStamp
()
.
"
\n
";
TBDebugTimeStamp
("
parser started
");
if
(
system
("
parse-ns
$pid
$eid
$nsfile
"))
{
cleanup
();
die
("
*** $0:
\n
"
.
"
Parsing failed!
\n
");
}
TBDebugTimeStamp
("
parser finished
");
print
"
Parser done!
"
.
TBTimeStamp
()
.
"
\n
";
TBDebugTimeStamp
("
routes started
");
print
"
Setting up static routes (if requested) ...
\n
";
if
(
system
("
staticroutes
$pid
$eid
"))
{
cleanup
();
die
("
*** $0:
\n
"
.
"
Static route calculation failed!
\n
");
}
TBDebugTimeStamp
("
routes finished
");
print
"
Static routing done!
"
.
TBTimeStamp
()
.
"
\n
";
if
(
!
SetExpState
(
$pid
,
$eid
,
EXPTSTATE_SWAPPED
))
{
...
...
@@ -112,6 +117,7 @@ if (!SetExpState($pid, $eid, EXPTSTATE_SWAPPED)) {
"
Failed to set experiment state!
\n
");
}
TBDebugTimeStamp
("
tbprerun finished
");
print
"
Pre run finished.
"
.
TBTimeStamp
()
.
"
\n
";
exit
(
0
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment